Merge branch 'development' of https://gitlab.lrz.de/lrr-tum/students/eragp-misim...
[Mograsim.git] / plugins / net.mograsim.plugin.core / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>
3 <plugin>
4
5    <extension
6          point="org.eclipse.core.contenttype.contentTypes">
7       <content-type
8             base-type="org.eclipse.core.runtime.text"
9             default-charset="UTF-8"
10             file-extensions="asm"
11             id="net.mograsim.plugin.asm"
12             name="%content-type.name"
13             priority="high">
14       </content-type>
15       <content-type
16             base-type="org.eclipse.core.runtime.text"
17             default-charset="UTF-8"
18             file-extensions="mpm"
19             id="net.mograsim.plugin.mpm"
20             name="%content-type.mpm.name"
21             priority="high">
22       </content-type>
23    </extension>
24    <extension
25          point="org.eclipse.ui.editors">
26       <editorContentTypeBinding
27             contentTypeId="net.mograsim.plugin.asm"
28             editorId="org.eclipse.ui.genericeditor.GenericEditor">
29       </editorContentTypeBinding>
30       <editorContentTypeBinding
31             contentTypeId="net.mograsim.plugin.mpm"
32             editorId="net.mograsim.plugin.tables.mi.InstructionView">
33       </editorContentTypeBinding>
34       <editor
35                 name="%view.name.2"
36                 icon="icons/mograsim/blue-orange/icon_blue-orange_7x8.png"
37                 class="net.mograsim.plugin.tables.mi.InstructionView"
38                 id="net.mograsim.plugin.tables.mi.InstructionView">
39       </editor>
40    </extension>
41    <extension
42          point="org.eclipse.ui.genericeditor.presentationReconcilers">
43       <presentationReconciler
44             class="net.mograsim.plugin.asm.editor.AsmPresentationReconciler"
45             contentType="net.mograsim.plugin.asm">
46       </presentationReconciler>
47    </extension>
48    <extension
49          point="org.eclipse.ui.genericeditor.hoverProviders">
50       <hoverProvider
51             class="net.mograsim.plugin.asm.editor.AsmHoverProvider"
52             contentType="net.mograsim.plugin.asm">
53       </hoverProvider>
54    </extension>
55    <extension
56          point="org.eclipse.ui.genericeditor.contentAssistProcessors">
57       <contentAssistProcessor
58             class="net.mograsim.plugin.asm.editor.AsmContentAssistProcessor"
59             contentType="net.mograsim.plugin.asm">
60       </contentAssistProcessor>
61    </extension>
62    <extension
63          point="org.eclipse.ui.genericeditor.autoEditStrategies">
64       <autoEditStrategy
65             class="net.mograsim.plugin.asm.editor.AsmAutoEditStrategy"
66             contentType="net.mograsim.plugin.asm">
67       </autoEditStrategy>
68    </extension>
69    <extension
70          point="org.eclipse.ui.genericeditor.reconcilers">
71       <reconciler
72             class="net.mograsim.plugin.asm.editor.AsmReconciler"
73             contentType="net.mograsim.plugin.asm">
74       </reconciler>
75    </extension>
76    <extension
77          point="org.eclipse.core.filebuffers.documentSetup">
78       <participant
79             class="net.mograsim.plugin.asm.editor.ValidatorDocumentSetupParticipant"
80             contentTypeId="net.mograsim.plugin.asm"
81             extensions="asm">
82       </participant>
83    </extension>
84    <extension
85          point="org.eclipse.ui.views">
86       <category
87             id="net.mograsim.plugin"
88             name="%category.name">
89       </category>
90       <view
91             allowMultiple="false"
92             category="net.mograsim.plugin"
93             class="net.mograsim.plugin.asm.AsmOpsEdit"
94             icon="icons/mograsim/orange/icon_orange_16.png"
95             id="net.mograsim.plugin.views.AsmOpsEdit"
96             inject="true"
97             name="%view.name">
98       </view>
99       <view
100             allowMultiple="true"
101             category="net.mograsim.plugin"
102             class="net.mograsim.plugin.views.LogicUIPart"
103             icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
104             id="net.mograsim.plugin.core.view1"
105             inject="true"
106             name="%view.name.0"
107             restorable="true">
108       </view>
109       <view
110             category="net.mograsim.plugin"
111                 id="net.mograsim.plugin.tables.memory.MemoryView"
112                 class="net.mograsim.plugin.tables.memory.MemoryView"
113             icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
114                 name="%view.name.1">
115       </view>
116             <view
117             category="net.mograsim.plugin"
118                 id="net.mograsim.plugin.tables.mi.InstructionView"
119                 class="net.mograsim.plugin.tables.mi.InstructionView"
120             icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
121                 name="%view.name.2">
122       </view>
123    </extension>
124    <extension
125          id="net.mograsim.plugin.nature.mograsimBuilder"
126          name="%extension.name"
127          point="org.eclipse.core.resources.builders">
128       <builder
129             hasNature="true">
130          <run
131                class="net.mograsim.plugin.nature.MograsimBuilder">
132          </run>
133       </builder>
134    </extension>
135    <extension
136          id="mograsimNature"
137          name="%extension.name.0"
138          point="org.eclipse.core.resources.natures">
139       <runtime>
140          <run
141                class="net.mograsim.plugin.nature.MograsimNature">
142          </run>
143       </runtime>
144       <builder
145             id="net.mograsim.plugin.nature.mograsimBuilder">
146       </builder>
147    </extension>
148    <extension
149          point="org.eclipse.ui.commands">
150       <category
151             id="net.mograsim.plugin.mograsimNature.category"
152             name="%category.name.0">
153       </category>
154       <command
155             categoryId="net.mograsim.plugin.mograsimNature.category"
156             defaultHandler="net.mograsim.plugin.nature.AddRemoveMograsimNatureHandler"
157             id="net.mograsim.plugin.addRemoveMograsimNature"
158             name="%command.name">
159       </command>
160    </extension>
161    <extension
162          point="org.eclipse.ui.menus">
163       <menuContribution
164             locationURI="popup:org.eclipse.ui.projectConfigure?after=additions">
165          <command
166                commandId="net.mograsim.plugin.addRemoveMograsimNature"
167                label="%command.label"
168                style="push">
169             <visibleWhen
170                   checkEnabled="false">
171                <with
172                      variable="selection">
173                   <count
174                         value="1">
175                   </count>
176                   <iterate>
177                      <adapt
178                            type="org.eclipse.core.resources.IProject">
179                         <test
180                               property="org.eclipse.core.resources.projectNature"
181                               value="net.mograsim.plugin.mograsimNature">
182                         </test>
183                      </adapt>
184                   </iterate>
185                </with>
186             </visibleWhen>
187          </command>
188          <command
189                commandId="net.mograsim.plugin.addRemoveMograsimNature"
190                label="%command.label.0"
191                style="push">
192             <visibleWhen
193                   checkEnabled="false">
194                <with
195                      variable="selection">
196                   <count
197                         value="1">
198                   </count>
199                   <iterate>
200                      <adapt
201                            type="org.eclipse.core.resources.IProject">
202                         <not>
203                            <test
204                                  property="org.eclipse.core.resources.projectNature"
205                                  value="net.mograsim.plugin.mograsimNature">
206                            </test>
207                         </not>
208                      </adapt>
209                   </iterate>
210                </with>
211             </visibleWhen>
212          </command>
213       </menuContribution>
214    </extension>
215    <extension
216          id="xmlProblem"
217          name="%extension.name.1"
218          point="org.eclipse.core.resources.markers">
219       <super
220             type="org.eclipse.core.resources.problemmarker">
221       </super>
222       <persistent
223             value="true">
224       </persistent>
225    </extension>
226    <extension
227          point="org.eclipse.ui.decorators">
228       <decorator
229             adaptable="true"
230             icon="icons/mograsim/blue-orange/icon_blue-orange_7x8.png"
231             id="net.mograsim.plugin.decorator"
232             label="%decorator.label"
233             lightweight="true"
234             location="BOTTOM_RIGHT"
235             state="true">
236          <enablement>
237             <and>
238                <objectClass
239                      name="org.eclipse.core.resources.IResource">
240                </objectClass>
241                <or>
242                   <objectClass
243                         name="org.eclipse.core.resources.IProject">
244                   </objectClass>
245                   <objectClass
246                         name="org.eclipse.core.resources.IFile">
247                   </objectClass>
248                </or>
249             </and>
250          </enablement>
251       </decorator>
252    </extension>
253    <extension
254          point="org.eclipse.ui.themes">
255       <themeElementCategory
256             class="net.mograsim.plugin.SimulationPreview"
257             id="net.mograsim.plugin.mograsim"
258             label="%themeElementCategory.label">
259       </themeElementCategory>
260       <themeElementCategory
261             class="net.mograsim.plugin.SimulationPreview"
262             id="net.mograsim.logic.model"
263             label="%themeElementCategory.label.0"
264             parentId="net.mograsim.plugin.mograsim">
265       </themeElementCategory>
266       <colorDefinition
267             categoryId="net.mograsim.logic.model"
268             id="net.mograsim.logic.model.color.background"
269             isEditable="true"
270             label="%colorDefinition.label"
271             value="COLOR_WHITE">
272          <description>
273             %colorDefinition.description
274          </description>
275       </colorDefinition>
276       <colorDefinition
277             categoryId="net.mograsim.logic.model"
278             id="net.mograsim.logic.model.color.foreground"
279             isEditable="true"
280             label="%colorDefinition.label.0"
281             value="COLOR_BLACK">
282       </colorDefinition>
283       <colorDefinition
284             categoryId="net.mograsim.logic.model"
285             id="net.mograsim.logic.model.color.text"
286             label="%colorDefinition.label.10"
287             value="COLOR_BLACK">
288       </colorDefinition>
289       <colorDefinition
290             categoryId="net.mograsim.logic.model"
291             id="net.mograsim.logic.model.color.bit.one"
292             isEditable="true"
293             label="%colorDefinition.label.5"
294             value="COLOR_GREEN">
295       </colorDefinition>
296       <colorDefinition
297             categoryId="net.mograsim.logic.model"
298             id="net.mograsim.logic.model.color.bit.u"
299             isEditable="true"
300             label="%colorDefinition.label.6"
301             value="COLOR_CYAN">
302       </colorDefinition>
303       <colorDefinition
304             categoryId="net.mograsim.logic.model"
305             id="net.mograsim.logic.model.color.bit.x"
306             isEditable="true"
307             label="%colorDefinition.label.7"
308             value="COLOR_RED">
309       </colorDefinition>
310       <colorDefinition
311             categoryId="net.mograsim.logic.model"
312             id="net.mograsim.logic.model.color.bit.z"
313             isEditable="true"
314             label="%colorDefinition.label.8"
315             value="COLOR_YELLOW">
316       </colorDefinition>
317       <colorDefinition
318             categoryId="net.mograsim.logic.model"
319             id="net.mograsim.logic.model.color.bit.zero"
320             isEditable="true"
321             label="%colorDefinition.label.9"
322             value="COLOR_GRAY">
323       </colorDefinition>
324       <colorDefinition
325             categoryId="net.mograsim.plugin.mograsim"
326             id="net.mograsim.plugin.asm_comment_color"
327             isEditable="true"
328             label="%colorDefinition.label.1"
329             value="COLOR_GREEN">
330       </colorDefinition>
331       <colorDefinition
332             categoryId="net.mograsim.plugin.mograsim"
333             id="net.mograsim.plugin.asm_label_color"
334             isEditable="true"
335             label="%colorDefinition.label.2"
336             value="COLOR_BLUE">
337       </colorDefinition>
338       <colorDefinition
339             categoryId="net.mograsim.plugin.mograsim"
340             id="net.mograsim.plugin.asm_operation_color"
341             isEditable="true"
342             label="%colorDefinition.label.3"
343             value="COLOR_RED">
344       </colorDefinition>
345       <colorDefinition
346             categoryId="net.mograsim.plugin.mograsim"
347             id="net.mograsim.plugin.asm_number_color"
348             isEditable="true"
349             label="%colorDefinition.label.4"
350             value="COLOR_MAGENTA">
351       </colorDefinition>
352       <fontDefinition
353             categoryId="net.mograsim.plugin.mograsim"
354             id="net.mograsim.plugin.asm_operation_font"
355             isEditable="true"
356             label="%fontDefinition.label">
357       </fontDefinition>
358    </extension>
359    <extension
360          point="org.eclipse.ui.preferencePages">
361       <page
362             class="net.mograsim.plugin.MainPreferencePage"
363             id="net.mograsim.plugin.core.mainprefpage"
364             name="Mograsim preferences">
365       </page>
366    </extension>
367
368 </plugin>