Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9bd6c1e6d7ab94f27416ca2847c53b9d5eb2e810 (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
73
74
75
76
77
78
79
80
/*
 * Copyright (c) 2007 Borland Software Corporation
 * 
 * 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:
 *    bblajer (Borland) - initial API and implementation
 */

«IMPORT "http://www.eclipse.org/gmf/2005/GenModel/2.0"»
«IMPORT "http://www.eclipse.org/emf/2002/Ecore"»

«DEFINE extensions FOR gmfgen::GenEditorGenerator-»
«IF editor.eclipseEditor-»
«EXPAND editor FOR editor-»
«ELSE-»
«EXPAND view FOR editor-»
«ENDIF-»
«IF null == application-»
«EXPAND wizard-»
«ENDIF-»
«ENDDEFINE»

«DEFINE editor FOR gmfgen::GenEditorView-»
   <extension point="org.eclipse.ui.editors">
     «EXPAND xpt::Common::xmlGeneratedTag»
     <editor
        id="«iD»"
        name="%editorName"
        icon="«iconPathX»"
        extensions="«editorGen.diagramFileExtension»"
        default="true"
        class="«getQualifiedClassName()»"
        matchingStrategy="«editorGen.diagram.getMatchingStrategyQualifiedClassName()»"
        contributorClass="«getActionBarContributorQualifiedClassName()»">
     </editor>
   </extension>
«ENDDEFINE»

«DEFINE view FOR gmfgen::GenEditorView-»
   <extension point="org.eclipse.ui.views">
     «EXPAND xpt::Common::xmlGeneratedTag»
      <view
            allowMultiple="false"
            category="«editorGen.diagram.creationWizardCategoryID»"
            class="«getQualifiedClassName()»"
            icon="«iconPathX»"
            id="«iD»"
            name="%viewerName"/>
   </extension>
«ENDDEFINE»

«DEFINE wizard FOR gmfgen::GenEditorGenerator-»
   <extension point="org.eclipse.ui.newWizards">
     «EXPAND xpt::Common::xmlGeneratedTag»
  	  <wizard
  	     name="%wizardName"
  	     icon="«diagram.creationWizardIconPathX»"
  	     category="«diagram.creationWizardCategoryID»"
  	     class="«diagram.getCreationWizardQualifiedClassName()»"
  	     id="«diagram.getCreationWizardQualifiedClassName()»ID">
  	  	 <description>%newWizardDesc</description>  
      </wizard>
   </extension>
«ENDDEFINE»

«DEFINE i18n FOR gmfgen::GenEditorGenerator-»
«IF editor.eclipseEditor-»
editorName=«modelID» Diagram Editor
«ELSE-»
viewerName=«modelID» Diagram View
«ENDIF-»
«IF null == application-»
wizardName=«modelID» Diagram
newWizardDesc=Creates «modelID» diagram.
«ENDIF-»
«ENDDEFINE»

Back to the top