blob: 251e4c8e0aaa99f359de9abfb46b1d4c7c1bf5d7 (
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
/******************************************************************************
* Copyright (c) 2007, 2020 Borland Software Corporation, CEA LIST, Artal
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Dmitry Stadnik (Borland) - initial API and implementation
* Aurelien Didier (ARTAL) - aurelien.didier51@gmail.com - Bug 569174
*****************************************************************************/
«IMPORT 'http://www.eclipse.org/papyrus/gmf/2020/GenModel'»
«DEFINE extensions FOR gmfgen::GenNavigator-»
«EXPAND editorInputPropertyTester('URIEditorInput', 'org.eclipse.emf.common.ui.URIEditorInput', getUriInputTesterQualifiedClassName())-»
«IF editorGen.diagram.generateShortcutIcon()-»
«EXPAND editorInputPropertyTester('Shortcut', 'org.eclipse.gmf.runtime.notation.View', editorGen.diagram.getShortcutPropertyTesterQualifiedClassName())-»
«ENDIF-»
«EXPAND registerBindings-»
<extension point="org.eclipse.ui.navigator.navigatorContent" id="navigator-content">
«EXPAND xpt::Common::xmlGeneratedTag»
<navigatorContent
id="«contentExtensionID»"
name="«contentExtensionName»"
priority="«contentExtensionPriority»"
contentProvider="«getContentProviderQualifiedClassName()»"
labelProvider="«getLabelProviderQualifiedClassName()»"
icon="«editorGen.editor.iconPathX»"
activeByDefault="true">
<triggerPoints>
<or>
<and>
<instanceof value="org.eclipse.core.resources.IFile"/>
<test property="org.eclipse.core.resources.extension" value="«editorGen.diagramFileExtension»"/>
</and>
<instanceof value="«getAbstractNavigatorItemQualifiedClassName()»"/>
«IF editorGen.diagram.generateShortcutIcon()-»
<adapt type="org.eclipse.gmf.runtime.notation.View">
<test property="«editorGen.plugin.iD».isShortcut"/>
</adapt>
«ENDIF-»
</or>
</triggerPoints>
<possibleChildren>
<or>
<instanceof value="«getAbstractNavigatorItemQualifiedClassName()»"/>
«IF editorGen.diagram.generateShortcutIcon()-»
<adapt type="org.eclipse.gmf.runtime.notation.View">
<test property="«editorGen.plugin.iD».isShortcut"/>
</adapt>
«ENDIF-»
</or>
</possibleChildren>
<commonSorter
id="«sorterExtensionID»"
class="«getSorterQualifiedClassName()»">
<parentExpression>
<or>
<and>
<instanceof value="org.eclipse.core.resources.IFile"/>
<test property="org.eclipse.core.resources.extension" value="«editorGen.diagramFileExtension»"/>
</and>
<instanceof value="«getAbstractNavigatorItemQualifiedClassName()»"/>
</or>
</parentExpression>
</commonSorter>
</navigatorContent>
«IF generateDomainModelNavigator and null <> editorGen.domainGenModel-»
<navigatorContent
id="«domainContentExtensionID»"
name="«domainContentExtensionName»"
priority="«domainContentExtensionPriority»"
contentProvider="«getDomainContentProviderQualifiedClassName()»"
labelProvider="«getDomainLabelProviderQualifiedClassName()»"
icon="«editorGen.editor.iconPathX»"
activeByDefault="true">
<triggerPoints>
<or>
<and>
<instanceof value="org.eclipse.core.resources.IFile"/>
<test property="org.eclipse.core.resources.extension" value="«editorGen.domainFileExtension»"/>
</and>
<instanceof value="«getDomainNavigatorItemQualifiedClassName()»"/>
</or>
</triggerPoints>
<possibleChildren>
<instanceof value="«getDomainNavigatorItemQualifiedClassName()»"/>
</possibleChildren>
</navigatorContent>
«ENDIF-»
<actionProvider
id="«actionProviderID»"
class="«getActionProviderQualifiedClassName()»">
<enablement>
<or>
<instanceof value="«getAbstractNavigatorItemQualifiedClassName()»"/>
«IF editorGen.diagram.generateShortcutIcon()-»
<adapt type="org.eclipse.gmf.runtime.notation.View">
<test property="«editorGen.plugin.iD».isShortcut"/>
</adapt>
«ENDIF-»
</or>
</enablement>
</actionProvider>
</extension>
«EXPAND registerLinkHelper-»
«ENDDEFINE»
«DEFINE editorInputPropertyTester(_property : String, type : String, testerClass : String) FOR gmfgen::GenNavigator-»
<extension point="org.eclipse.core.expressions.propertyTesters" id="navigator-proptest.is«_property»">
«EXPAND xpt::Common::xmlGeneratedTag»
<propertyTester
id="«editorGen.plugin.iD».«_property»PropertyTester"
type="«type»"
namespace="«editorGen.plugin.iD»"
properties="is«_property»"
class="«testerClass»">
</propertyTester>
</extension>
«ENDDEFINE»
«DEFINE registerBindings FOR gmfgen::GenNavigator-»
<extension point="org.eclipse.ui.navigator.viewer" id="navigator-viewbinding">
«EXPAND xpt::Common::xmlGeneratedTag»
<viewerContentBinding viewerId="org.eclipse.ui.navigator.ProjectExplorer">
<includes>
<contentExtension pattern="«contentExtensionID»"/>
«IF generateDomainModelNavigator and null <> editorGen.domainGenModel-»
<contentExtension pattern="«domainContentExtensionID»"/>
«ENDIF-»
<contentExtension pattern="«linkHelperExtensionID»"/>
</includes>
</viewerContentBinding>
<viewerActionBinding viewerId="org.eclipse.ui.navigator.ProjectExplorer">
<includes>
<actionExtension pattern="«actionProviderID»"/>
</includes>
</viewerActionBinding>
</extension>
«ENDDEFINE»
«DEFINE registerLinkHelper FOR gmfgen::GenNavigator-»
<extension point="org.eclipse.ui.navigator.linkHelper" id="navigator-linkhelper">
«EXPAND xpt::Common::xmlGeneratedTag»
<linkHelper
id="«linkHelperExtensionID»"
class="«getLinkHelperQualifiedClassName()»">
<editorInputEnablement>
<and>
<instanceof value="org.eclipse.emf.common.ui.URIEditorInput"/>
<test property="«editorGen.plugin.iD».isURIEditorInput"/>
</and>
</editorInputEnablement>
<selectionEnablement>
<instanceof value="«getAbstractNavigatorItemQualifiedClassName()»"/>
</selectionEnablement>
</linkHelper>
</extension>
«ENDDEFINE»
|