blob: 9138a141b77516871c4cdc55977d75b7a26c300f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
/*****************************************************************************
* Copyright (c) 2015 CEA LIST.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Fadwa TMAR (CEA LIST) fadwa.tmar@cea.fr - Initial API and implementation
*****************************************************************************/
package org.eclipse.papyrus.soaml.diagram.ui;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.papyrus.soaml.diagram.common.commands.CreateSoamlModelCommand;
import org.eclipse.papyrus.uml.diagram.wizards.wizards.CreateModelWizard;
import org.eclipse.papyrus.uml.diagram.wizards.pages.SelectArchitectureContextPage;
import org.eclipse.ui.IWorkbench;
public class NewSoamlModelWizard extends CreateModelWizard {
/**
* @see org.eclipse.papyrus.wizards.CreateModelWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
*
* @param workbench
* @param selection
*/
@Override
public void init(IWorkbench workbench, IStructuredSelection selection) {
super.init(workbench, selection);
setWindowTitle("New SoaML Model");
}
/**
* Instantiates a new new Proteus model wizard.
*/
public NewSoamlModelWizard() {
super();
}
@Override
public String getModelKindName() {
return "SoaML Model"; //$NON-NLS-1$
}
@Override
protected String[] getSelectedContexts() {
return new String[]{ CreateSoamlModelCommand.COMMAND_ID };
}
/**
* {@inheritDoc}
*/
@Override
protected SelectArchitectureContextPage createSelectArchitectureContextPage() {
// here SoaML is the only available category
return null;
}
/**
* {@inheritDoc}
*/
@Override
protected void saveDiagramCategorySettings() {
// here SoaML is the only available category
}
}
|