|
1 /* |
|
2 * Copyright (c) 2007 Borland Software Corporation |
|
3 * |
|
4 * All rights reserved. This program and the accompanying materials |
|
5 * are made available under the terms of the Eclipse Public License v1.0 |
|
6 * which accompanies this distribution, and is available at |
|
7 * http://www.eclipse.org/legal/epl-v10.html |
|
8 * |
|
9 * Contributors: |
|
10 * bblajer (Borland) - initial API and implementation |
|
11 */ |
|
12 |
|
13 «IMPORT "http://www.eclipse.org/gmf/2008/GenModel"» |
|
14 «IMPORT "http://www.eclipse.org/emf/2002/Ecore"» |
|
15 |
|
16 «DEFINE extensions FOR gmfgen::GenEditorGenerator-» |
|
17 «IF editor.eclipseEditor-» |
|
18 «EXPAND editor FOR editor-» |
|
19 «ELSE-» |
|
20 «EXPAND view FOR editor-» |
|
21 «ENDIF-» |
|
22 «IF null == application-» |
|
23 «EXPAND wizard-» |
|
24 «ENDIF-» |
|
25 «ENDDEFINE» |
|
26 |
|
27 «DEFINE editor FOR gmfgen::GenEditorView-» |
|
28 <extension point="org.eclipse.ui.editors"> |
|
29 «EXPAND xpt::Common::xmlGeneratedTag» |
|
30 <editor |
|
31 id="«iD»" |
|
32 name="%editorName" |
|
33 icon="«iconPathX»" |
|
34 extensions="«editorGen.diagramFileExtension»" |
|
35 default="true" |
|
36 class="«getQualifiedClassName()»" |
|
37 matchingStrategy="«editorGen.diagram.getMatchingStrategyQualifiedClassName()»" |
|
38 contributorClass="«getActionBarContributorQualifiedClassName()»"> |
|
39 </editor> |
|
40 </extension> |
|
41 «ENDDEFINE» |
|
42 |
|
43 «DEFINE view FOR gmfgen::GenEditorView-» |
|
44 <extension point="org.eclipse.ui.views"> |
|
45 «EXPAND xpt::Common::xmlGeneratedTag» |
|
46 <view |
|
47 allowMultiple="false" |
|
48 category="«editorGen.diagram.creationWizardCategoryID»" |
|
49 class="«getQualifiedClassName()»" |
|
50 icon="«iconPathX»" |
|
51 id="«iD»" |
|
52 name="%viewerName"/> |
|
53 </extension> |
|
54 «ENDDEFINE» |
|
55 |
|
56 «DEFINE wizard FOR gmfgen::GenEditorGenerator-» |
|
57 <extension point="org.eclipse.ui.newWizards"> |
|
58 «EXPAND xpt::Common::xmlGeneratedTag» |
|
59 <wizard |
|
60 name="%wizardName" |
|
61 icon="«diagram.creationWizardIconPathX»" |
|
62 category="«diagram.creationWizardCategoryID»" |
|
63 class="«diagram.getCreationWizardQualifiedClassName()»" |
|
64 id="«diagram.getCreationWizardQualifiedClassName()»ID"> |
|
65 <description>%newWizardDesc</description> |
|
66 </wizard> |
|
67 </extension> |
|
68 «ENDDEFINE» |
|
69 |
|
70 «DEFINE i18n FOR gmfgen::GenEditorGenerator-» |
|
71 «IF editor.eclipseEditor-» |
|
72 editorName=«modelID» Diagram Editor |
|
73 «ELSE-» |
|
74 viewerName=«modelID» Diagram View |
|
75 «ENDIF-» |
|
76 «IF null == application-» |
|
77 wizardName=«modelID» Diagram |
|
78 newWizardDesc=Creates «modelID» diagram. |
|
79 «ENDIF-» |
|
80 «ENDDEFINE» |