Search in sources :

Example 1 with ManifestServices

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);
    }
}
Also used : ManifestServices(org.obeonetwork.tools.projectlibrary.extension.ManifestServices) MManifest(org.obeonetwork.dsl.manifest.MManifest) Session(org.eclipse.sirius.business.api.session.Session)

Aggregations

Session (org.eclipse.sirius.business.api.session.Session)1 MManifest (org.obeonetwork.dsl.manifest.MManifest)1 ManifestServices (org.obeonetwork.tools.projectlibrary.extension.ManifestServices)1