Search in sources :

Example 1 with UsageModel

use of org.palladiosimulator.pcm.usagemodel.UsageModel 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)

Aggregations

ModelCreationPage (org.palladiosimulator.editors.sirius.ui.wizard.model.ModelCreationPage)1 UsageModel (org.palladiosimulator.pcm.usagemodel.UsageModel)1