Search in sources :

Example 1 with ModelCreationPage

use of org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage in project Palladio-Editors-Sirius by PalladioSimulator.

the class SystemCreationWizard method init.

@Override
protected void init(IStructuredSelection selection) {
    String viewpointName = Activator.VIEWPOINT_NAME;
    viewpoint = Activator.getDefault().getViewpoint();
    String ext = Activator.getDefault().getViewpoint().getModelFileExtension();
    modelCreationPage = new ModelCreationPage(selection, viewpointName + " Creation Wizard", "new" + viewpointName, ext);
    representationDescription = Activator.getDefault().getRepresentationDescription();
    String defaultRepresentationName = "new " + Activator.REPRESENTATION_NAME;
    this.representationCreationPage.setDefaultRepresentationName(defaultRepresentationName);
    org.palladiosimulator.pcm.system.System obj = SystemFactory.eINSTANCE.createSystem();
    obj.setEntityName("New System");
    modelObject = obj;
}
Also used : ModelCreationPage(org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage)

Example 2 with ModelCreationPage

use of org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage in project Palladio-Editors-Sirius by PalladioSimulator.

the class RepositoryCreationWizard method init.

@Override
protected void init(IStructuredSelection selection) {
    String viewpointName = Activator.VIEWPOINT_NAME;
    viewpoint = Activator.getDefault().getViewpoint();
    String ext = Activator.getDefault().getViewpoint().getModelFileExtension();
    modelCreationPage = new ModelCreationPage(selection, viewpointName + " Creation Wizard", "new" + viewpointName, ext);
    representationDescription = Activator.getDefault().getRepresentationDescription();
    String defaultRepresentationName = "new " + Activator.REPRESENTATION_NAME;
    this.representationCreationPage.setDefaultRepresentationName(defaultRepresentationName);
    Repository obj = RepositoryFactory.eINSTANCE.createRepository();
    obj.setEntityName("New Repository");
    modelObject = obj;
}
Also used : ModelCreationPage(org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage) Repository(org.palladiosimulator.pcm.repository.Repository)

Example 3 with ModelCreationPage

use of org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage in project Palladio-Editors-Sirius by PalladioSimulator.

the class UsageModelCreationWizard method init.

@Override
protected void init(IStructuredSelection selection) {
    String viewpointName = Activator.VIEWPOINT_NAME;
    viewpoint = Activator.getDefault().getViewpoint();
    String ext = Activator.getDefault().getViewpoint().getModelFileExtension();
    modelCreationPage = new ModelCreationPage(selection, viewpointName + " Creation Wizard", "new" + viewpointName, ext);
    representationDescription = Activator.getDefault().getRepresentationDescription();
    String defaultRepresentationName = "new " + Activator.REPRESENTATION_NAME;
    this.representationCreationPage.setDefaultRepresentationName(defaultRepresentationName);
    UsageModel obj = UsagemodelFactory.eINSTANCE.createUsageModel();
    modelObject = obj;
}
Also used : ModelCreationPage(org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage) UsageModel(org.palladiosimulator.pcm.usagemodel.UsageModel)

Example 4 with ModelCreationPage

use of org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage in project Palladio-Editors-Sirius by PalladioSimulator.

the class AllocationCreationWizard method init.

@Override
protected void init(IStructuredSelection selection) {
    String viewpointName = Activator.VIEWPOINT_NAME;
    viewpoint = Activator.getDefault().getViewpoint();
    String ext = Activator.getDefault().getViewpoint().getModelFileExtension();
    modelCreationPage = new ModelCreationPage(selection, viewpointName + " Creation Wizard", "new" + viewpointName, ext);
    representationDescription = Activator.getDefault().getRepresentationDescription();
    String defaultRepresentationName = "new " + Activator.REPRESENTATION_NAME;
    this.representationCreationPage.setDefaultRepresentationName(defaultRepresentationName);
    resourceEnvironmentSelectorpage = new ResourceEnvironmentSelectorPage();
    systemSelectorPage = new SystemSelectorPage();
    additionalPages.add(resourceEnvironmentSelectorpage);
    additionalPages.add(systemSelectorPage);
    Allocation obj = AllocationFactory.eINSTANCE.createAllocation();
    obj.setEntityName("New Allocation");
    modelObject = obj;
}
Also used : ModelCreationPage(org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage) Allocation(org.palladiosimulator.pcm.allocation.Allocation)

Example 5 with ModelCreationPage

use of org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage in project Palladio-Editors-Sirius by PalladioSimulator.

the class ResourceEnvironmentCreationWizard method init.

@Override
protected void init(IStructuredSelection selection) {
    String viewpointName = Activator.VIEWPOINT_NAME;
    viewpoint = Activator.getDefault().getViewpoint();
    String ext = Activator.getDefault().getViewpoint().getModelFileExtension();
    modelCreationPage = new ModelCreationPage(selection, viewpointName + " Creation Wizard", "new" + viewpointName, ext);
    representationDescription = Activator.getDefault().getRepresentationDescription();
    String defaultRepresentationName = "new " + Activator.REPRESENTATION_NAME;
    this.representationCreationPage.setDefaultRepresentationName(defaultRepresentationName);
    ResourceEnvironment obj = ResourceenvironmentFactory.eINSTANCE.createResourceEnvironment();
    obj.setEntityName("New ResourceEnvironment");
    modelObject = obj;
}
Also used : ModelCreationPage(org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage) ResourceEnvironment(org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment)

Aggregations

ModelCreationPage (org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage)5 Allocation (org.palladiosimulator.pcm.allocation.Allocation)1 Repository (org.palladiosimulator.pcm.repository.Repository)1 ResourceEnvironment (org.palladiosimulator.pcm.resourceenvironment.ResourceEnvironment)1 UsageModel (org.palladiosimulator.pcm.usagemodel.UsageModel)1