source: trunk/modelicaml/org.openmodelica.modelicaml.editor.xtext.modification.ui/plugin.xml @ 662

Last change on this file since 662 was 603, checked in by wschamai, 14 years ago
File size: 8.3 KB
RevLine 
[603]1<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.0"?>
3
4<plugin>
5
6    <extension
7            point="org.eclipse.ui.editors">
8        <editor
9            class="org.openmodelica.modelicaml.editor.xtext.modification.ui.ModificationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
10            contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
11            default="true"
12            extensions="modelicamlmodification"
13            id="org.openmodelica.modelicaml.editor.xtext.modification.Modification"
14            name="Modification Editor">
15        </editor>
16    </extension>
17    <extension
18        point="org.eclipse.ui.handlers">
19        <handler
20            class="org.openmodelica.modelicaml.editor.xtext.modification.ui.ModificationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler"
21            commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
22            <activeWhen>
23                <reference
24                    definitionId="org.openmodelica.modelicaml.editor.xtext.modification.Modification.Editor.opened">
25                </reference>
26            </activeWhen>
27        </handler>
28        <handler
29            class="org.openmodelica.modelicaml.editor.xtext.modification.ui.ModificationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler"
30            commandId="org.openmodelica.modelicaml.editor.xtext.modification.Modification.validate">
31         <activeWhen>
32            <reference
33                    definitionId="org.openmodelica.modelicaml.editor.xtext.modification.Modification.Editor.opened">
34            </reference>
35         </activeWhen>
36      </handler>
37    </extension>
38    <extension point="org.eclipse.core.expressions.definitions">
39        <definition id="org.openmodelica.modelicaml.editor.xtext.modification.Modification.Editor.opened">
40            <and>
41                <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/>
42                <with variable="activeEditor">
43                    <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" 
44                        value="org.openmodelica.modelicaml.editor.xtext.modification.Modification" 
45                        forcePluginActivation="true"/>
46                </with>       
47            </and>
48        </definition>
49    </extension>
50    <extension
51            point="org.eclipse.ui.preferencePages">
52        <page
53            class="org.openmodelica.modelicaml.editor.xtext.modification.ui.ModificationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
54            id="org.openmodelica.modelicaml.editor.xtext.modification.Modification"
55            name="Modification">
56            <keywordReference id="org.openmodelica.modelicaml.editor.xtext.modification.ui.keyword_Modification"/>
57        </page>
58        <page
59            category="org.openmodelica.modelicaml.editor.xtext.modification.Modification"
60            class="org.openmodelica.modelicaml.editor.xtext.modification.ui.ModificationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage"
61            id="org.openmodelica.modelicaml.editor.xtext.modification.Modification.coloring"
62            name="Syntax Coloring">
63            <keywordReference id="org.openmodelica.modelicaml.editor.xtext.modification.ui.keyword_Modification"/>
64        </page>
65        <page
66            category="org.openmodelica.modelicaml.editor.xtext.modification.Modification"
67            class="org.openmodelica.modelicaml.editor.xtext.modification.ui.ModificationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage"
68            id="org.openmodelica.modelicaml.editor.xtext.modification.Modification.templates"
69            name="Templates">
70            <keywordReference id="org.openmodelica.modelicaml.editor.xtext.modification.ui.keyword_Modification"/>
71        </page>
72    </extension>
73    <extension
74        point="org.eclipse.ui.keywords">
75        <keyword
76            id="org.openmodelica.modelicaml.editor.xtext.modification.ui.keyword_Modification"
77            label="Modification"/>
78    </extension>
79    <extension
80         point="org.eclipse.ui.commands">
81      <command
82            description="Trigger expensive validation"
83            id="org.openmodelica.modelicaml.editor.xtext.modification.Modification.validate"
84            name="Validate">
85      </command>
86    </extension>
87    <extension point="org.eclipse.ui.menus">
88        <menuContribution
89            locationURI="popup:#TextEditorContext?after=group.edit">
90             <command
91                 commandId="org.openmodelica.modelicaml.editor.xtext.modification.Modification.validate"
92                 style="push"
93                 tooltip="Trigger expensive validation">
94            <visibleWhen checkEnabled="false">
95                <reference
96                    definitionId="org.openmodelica.modelicaml.editor.xtext.modification.Modification.Editor.opened">
97                </reference>
98            </visibleWhen>
99         </command> 
100         </menuContribution>
101    </extension>
102    <extension point="org.eclipse.ui.menus">
103        <menuContribution locationURI="popup:#TextEditorContext?endof=group.find">
104            <command commandId="org.eclipse.xtext.ui.editor.FindReferences">
105                <visibleWhen checkEnabled="false">
106                    <reference definitionId="org.openmodelica.modelicaml.editor.xtext.modification.Modification.Editor.opened">
107                    </reference>
108                </visibleWhen>
109            </command>
110        </menuContribution>
111    </extension>
112    <extension point="org.eclipse.ui.handlers">
113        <handler
114            class="org.openmodelica.modelicaml.editor.xtext.modification.ui.ModificationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler"
115            commandId="org.eclipse.xtext.ui.editor.FindReferences">
116            <activeWhen>
117                <reference
118                    definitionId="org.openmodelica.modelicaml.editor.xtext.modification.Modification.Editor.opened">
119                </reference>
120            </activeWhen>
121        </handler>
122    </extension>   
123
124<!-- adding resource factories -->
125
126    <extension
127        point="org.eclipse.emf.ecore.extension_parser">
128        <parser
129            class="org.openmodelica.modelicaml.editor.xtext.modification.ui.ModificationExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
130            type="modelicamlmodification">
131        </parser>
132    </extension>
133    <extension point="org.eclipse.xtext.extension_resourceServiceProvider">
134        <resourceServiceProvider
135            class="org.openmodelica.modelicaml.editor.xtext.modification.ui.ModificationExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
136            uriExtension="modelicamlmodification">
137        </resourceServiceProvider>
138    </extension>
139
140
141
142
143    <!-- Quick Outline -->
144    <extension
145        point="org.eclipse.ui.handlers">
146        <handler 
147            class="org.openmodelica.modelicaml.editor.xtext.modification.ui.ModificationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler"
148            commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline">
149            <activeWhen>
150                <reference
151                    definitionId="org.openmodelica.modelicaml.editor.xtext.modification.Modification.Editor.opened">
152                </reference>
153            </activeWhen>
154        </handler>
155    </extension>
156    <extension
157        point="org.eclipse.ui.commands">
158        <command
159            description="Open the quick outline."
160            id="org.eclipse.xtext.ui.editor.outline.QuickOutline"
161            name="Quick Outline">
162        </command>
163    </extension>
164    <extension point="org.eclipse.ui.menus">
165        <menuContribution
166            locationURI="popup:#TextEditorContext?after=group.open">
167            <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"
168                style="push"
169                tooltip="Open Quick Outline">
170                <visibleWhen checkEnabled="false">
171                    <reference definitionId="org.openmodelica.modelicaml.editor.xtext.modification.Modification.Editor.opened"/>
172                </visibleWhen>
173            </command>
174        </menuContribution>
175    </extension>
176   <!-- quickfix marker resolution generator -->
177   <extension
178         point="org.eclipse.ui.ide.markerResolution">
179      <markerResolutionGenerator
180            class="org.openmodelica.modelicaml.editor.xtext.modification.ui.ModificationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator">
181      </markerResolutionGenerator>
182   </extension>
183
184</plugin>
Note: See TracBrowser for help on using the repository browser.