blob: da63f1b01bf28bbda5a53f7c1271afa7b6b0ec3c [file] [log] [blame]
Alex Ruiz6d2c0ce2011-04-13 21:19:24 +00001<?xml version="1.0" encoding="UTF-8"?>
2<?eclipse version="3.0"?>
3
4<plugin>
5
Alex Ruiz50e6a202011-04-15 21:55:57 +00006 <extension point="org.eclipse.ui.editors">
7 <editor class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
8 contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" default="true" extensions="proto"
9 icon="icons/pb.gif" id="com.google.eclipse.protobuf.Protobuf" name="%editor.name">
10 </editor>
11 </extension>
12 <extension point="org.eclipse.ui.handlers">
13 <handler
14 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler"
15 commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
16 <activeWhen>
17 <reference definitionId="com.google.eclipse.protobuf.Protobuf.Editor.opened">
18 </reference>
19 </activeWhen>
20 </handler>
21 <handler
22 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler"
23 commandId="com.google.eclipse.protobuf.Protobuf.validate">
24 <activeWhen>
25 <reference definitionId="com.google.eclipse.protobuf.Protobuf.Editor.opened">
26 </reference>
27 </activeWhen>
28 </handler>
29 <handler
30 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:com.google.eclipse.protobuf.ui.commands.SmartSemicolonHandler"
31 commandId="com.google.eclipse.protobuf.ui.smartSemicolon">
32 <activeWhen>
33 <reference definitionId="com.google.eclipse.protobuf.Protobuf.Editor.opened">
34 </reference>
35 </activeWhen>
36 </handler>
37 </extension>
38 <extension point="org.eclipse.core.expressions.definitions">
39 <definition id="com.google.eclipse.protobuf.Protobuf.Editor.opened">
40 <and>
41 <reference definitionId="isActiveEditorAnInstanceOfXtextEditor" />
42 <with variable="activeEditor">
43 <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" value="com.google.eclipse.protobuf.Protobuf"
44 forcePluginActivation="true" />
45 </with>
46 </and>
47 </definition>
48 </extension>
49 <extension point="org.eclipse.ui.preferencePages">
50 <page
Alex Ruiz3b0a2eb2011-05-10 21:29:35 +000051 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:com.google.eclipse.protobuf.ui.preferences.RootPreferencePage"
Alex Ruiz50e6a202011-04-15 21:55:57 +000052 id="com.google.eclipse.protobuf.Protobuf" name="%page.name">
53 <keywordReference id="com.google.eclipse.protobuf.ui.keyword_Protobuf" />
54 </page>
55 <page category="com.google.eclipse.protobuf.Protobuf"
56 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage"
57 id="com.google.eclipse.protobuf.Protobuf.coloring" name="%page.name.0">
58 <keywordReference id="com.google.eclipse.protobuf.ui.keyword_Protobuf" />
59 </page>
60 <page category="com.google.eclipse.protobuf.Protobuf"
61 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage"
62 id="com.google.eclipse.protobuf.Protobuf.templates" name="%page.name.1">
63 <keywordReference id="com.google.eclipse.protobuf.ui.keyword_Protobuf" />
64 </page>
65 <page category="com.google.eclipse.protobuf.Protobuf"
Alex Ruiz6a66d232011-05-14 05:04:29 +000066 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:com.google.eclipse.protobuf.ui.preferences.compiler.CompilerPreferencePage"
67 id="com.google.eclipse.protobuf.ui.preferences.compiler.CompilerPreferencePage" name="%page.name.2">
Alex Ruiz50e6a202011-04-15 21:55:57 +000068 <keywordReference id="com.google.eclipse.protobuf.ui.keyword_Protobuf" />
69 </page>
70 </extension>
71 <extension point="org.eclipse.ui.keywords">
72 <keyword id="com.google.eclipse.protobuf.ui.keyword_Protobuf" label="%keyword.label" />
73 </extension>
74 <extension point="org.eclipse.ui.commands">
75 <command description="%command.description" id="com.google.eclipse.protobuf.Protobuf.validate" name="%command.name">
76 </command>
77 </extension>
78 <extension point="org.eclipse.ui.menus">
79 <menuContribution locationURI="popup:#TextEditorContext?after=group.edit">
80 <command commandId="com.google.eclipse.protobuf.Protobuf.validate" style="push" tooltip="%command.tooltip">
81 <visibleWhen checkEnabled="false">
82 <reference definitionId="com.google.eclipse.protobuf.Protobuf.Editor.opened">
83 </reference>
84 </visibleWhen>
Alex Ruiz6d2c0ce2011-04-13 21:19:24 +000085 </command>
Alex Ruiz50e6a202011-04-15 21:55:57 +000086 </menuContribution>
87 </extension>
88 <extension point="org.eclipse.ui.menus">
89 <menuContribution locationURI="popup:#TextEditorContext?endof=group.find">
90 <command commandId="org.eclipse.xtext.ui.editor.FindReferences">
91 <visibleWhen checkEnabled="false">
92 <reference definitionId="com.google.eclipse.protobuf.Protobuf.Editor.opened">
93 </reference>
94 </visibleWhen>
95 </command>
96 </menuContribution>
97 </extension>
98 <extension point="org.eclipse.ui.handlers">
99 <handler
100 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler"
101 commandId="org.eclipse.xtext.ui.editor.FindReferences">
102 <activeWhen>
103 <reference definitionId="com.google.eclipse.protobuf.Protobuf.Editor.opened">
104 </reference>
105 </activeWhen>
106 </handler>
107 </extension>
Alex Ruiz6d2c0ce2011-04-13 21:19:24 +0000108
Alex Ruiz50e6a202011-04-15 21:55:57 +0000109 <!-- adding resource factories -->
110 <extension point="org.eclipse.emf.ecore.extension_parser">
111 <parser
112 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
113 type="proto">
114 </parser>
115 </extension>
116 <extension point="org.eclipse.xtext.extension_resourceServiceProvider">
117 <resourceServiceProvider
118 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
119 uriExtension="proto">
120 </resourceServiceProvider>
121 </extension>
Alex Ruiz6d2c0ce2011-04-13 21:19:24 +0000122
Alex Ruiz50e6a202011-04-15 21:55:57 +0000123 <!-- Quick Outline -->
124 <extension point="org.eclipse.ui.handlers">
125 <handler
126 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler"
127 commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline">
128 <activeWhen>
129 <reference definitionId="com.google.eclipse.protobuf.Protobuf.Editor.opened">
130 </reference>
131 </activeWhen>
132 </handler>
133 </extension>
134 <extension point="org.eclipse.ui.commands">
135 <command description="%command.description.0" id="org.eclipse.xtext.ui.editor.outline.QuickOutline" name="%command.name.0">
136 </command>
137 <command categoryId="org.eclipse.ui.category.textEditor" description="%command.description.1"
138 id="com.google.eclipse.protobuf.ui.smartSemicolon" name="%command.name.1">
139 </command>
140 </extension>
141 <extension point="org.eclipse.ui.menus">
142 <menuContribution locationURI="popup:#TextEditorContext?after=group.open">
143 <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" style="push" tooltip="%command.tooltip.0">
144 <visibleWhen checkEnabled="false">
145 <reference definitionId="com.google.eclipse.protobuf.Protobuf.Editor.opened" />
146 </visibleWhen>
147 </command>
148 </menuContribution>
149 </extension>
Alex Ruiz6d2c0ce2011-04-13 21:19:24 +0000150
Alex Ruiz50e6a202011-04-15 21:55:57 +0000151 <!-- quickfix marker resolution generator -->
152 <extension point="org.eclipse.ui.ide.markerResolution">
153 <markerResolutionGenerator
154 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator">
155 </markerResolutionGenerator>
156 </extension>
157 <extension point="org.eclipse.ui.bindings">
158 <key commandId="com.google.eclipse.protobuf.ui.smartSemicolon" contextId="org.eclipse.xtext.ui.XtextEditorScope"
159 schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence=";">
160 </key>
161 </extension>
162 <extension point="org.eclipse.ui.propertyPages">
163 <page
Alex Ruiz3b0a2eb2011-05-10 21:29:35 +0000164 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:com.google.eclipse.protobuf.ui.preferences.RootPreferencePage"
165 id="com.google.eclipse.protobuf.Protobuf"
166 name="%page.name" selectionFilter="single">
167 </page>
168 <page
169 category="com.google.eclipse.protobuf.Protobuf"
Alex Ruiz6a66d232011-05-14 05:04:29 +0000170 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:com.google.eclipse.protobuf.ui.preferences.compiler.CompilerPreferencePage"
Alex Ruiz3b0a2eb2011-05-10 21:29:35 +0000171 id="com.google.eclipse.protobuf.ui.properties.compiler.PropertyPage"
172 name="%page.name.2"
173 selectionFilter="single">
174 </page>
175 <page
176 category="com.google.eclipse.protobuf.Protobuf"
Alex Ruiz6a66d232011-05-14 05:04:29 +0000177 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:com.google.eclipse.protobuf.ui.preferences.paths.PathsPreferencePage"
Alex Ruiz3b0a2eb2011-05-10 21:29:35 +0000178 id="com.google.eclipse.protobuf.ui.properties.paths.PropertyPage"
179 name="%page.name.3"
180 selectionFilter="single">
Alex Ruiz50e6a202011-04-15 21:55:57 +0000181 </page>
182 </extension>
183 <extension point="org.eclipse.xtext.builder.participant">
184 <participant
185 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:com.google.eclipse.protobuf.ui.builder.ProtobufBuildParticipant">
186 </participant>
187 </extension>
Alex Ruiz94696e42011-05-03 22:30:07 +0000188 <extension id="protocMarker" name="%protoc.marker.name" point="org.eclipse.core.resources.markers">
Alex Ruiz50e6a202011-04-15 21:55:57 +0000189 <super type="org.eclipse.core.resources.problemmarker">
190 </super>
191 <super type="org.eclipse.core.resources.textmarker">
192 </super>
193 <persistent value="true">
194 </persistent>
195 </extension>
Alex Ruiz94696e42011-05-03 22:30:07 +0000196
Alex Ruiz50e6a202011-04-15 21:55:57 +0000197 <!-- Rename Refactoring -->
198 <extension point="org.eclipse.ui.handlers">
199 <handler
200 class="com.google.eclipse.protobuf.ui.ProtobufExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RenameElementHandler"
201 commandId="org.eclipse.xtext.ui.refactoring.RenameElement">
202 <activeWhen>
203 <reference definitionId="com.google.eclipse.protobuf.Protobuf.Editor.opened">
204 </reference>
205 </activeWhen>
206 </handler>
207 </extension>
208 <extension point="org.eclipse.ui.menus">
209 <menuContribution locationURI="popup:#TextEditorContext?after=group.edit">
210 <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement" style="push">
211 <visibleWhen checkEnabled="false">
212 <reference definitionId="com.google.eclipse.protobuf.Protobuf.Editor.opened">
213 </reference>
214 </visibleWhen>
215 </command>
216 </menuContribution>
217 </extension>
Alex Ruiz6d2c0ce2011-04-13 21:19:24 +0000218</plugin>