use of org.obeonetwork.tools.projectlibrary.extension.ManifestServices in project InformationSystem by ObeoNetwork.
the class ExportProjectAsLibraryWizardModel method setSelectedModelingProject.
public void setSelectedModelingProject(ModelingProject selectedModelingProject) {
this.selectedModelingProject = selectedModelingProject;
// Initialize values for other fields
if (selectedModelingProject != null) {
Session session = selectedModelingProject.getSession();
List<MManifest> previousManifests = new ManifestServices().getExportedManifests(session);
String projectId = selectedModelingProject.getProject().getName();
if (!previousManifests.isEmpty()) {
projectId = previousManifests.get(previousManifests.size() - 1).getProjectId();
}
setProjectId(projectId);
setPreviousVersions(previousManifests);
}
}
Aggregations