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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations