959e6a844357ad823cecae68b6b7e0c6d56aab89
[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    <extension
5          point="org.eclipse.core.expressions.definitions">
6       <definition
7             id="net.mograsim.plugin.core.hasNature">
8          <adapt
9                type="org.eclipse.core.resources.IProject">
10             <test
11                   property="org.eclipse.core.resources.projectNature"
12                   value="net.mograsim.plugin.core.mograsimNature">
13             </test>
14          </adapt>
15       </definition>
16    </extension>
17
18    <extension
19          point="org.eclipse.core.contenttype.contentTypes">
20       <content-type
21             base-type="org.eclipse.core.runtime.text"
22             default-charset="UTF-8"
23             file-extensions="asm"
24             id="net.mograsim.plugin.asm"
25             name="%content-type.name"
26             priority="high">
27       </content-type>
28       <content-type
29             base-type="org.eclipse.core.runtime.text"
30             default-charset="UTF-8"
31             file-extensions="mpm"
32             id="net.mograsim.plugin.mpm"
33             name="%content-type.mpm.name"
34             priority="high">
35       </content-type>
36       <content-type
37             base-type="org.eclipse.core.runtime.text"
38             default-charset="UTF-8"
39             file-extensions="regs"
40             id="net.mograsim.plugin.regs"
41             name="Registers / Latches state"
42             priority="high">
43       </content-type>
44       <content-type
45             base-type="org.eclipse.core.runtime.text"
46             default-charset="UTF-8"
47             file-extensions="mem"
48             id="net.mograsim.plugin.mem"
49             name="Main Memory"
50             priority="high">
51       </content-type>
52    </extension>
53    <extension
54          point="org.eclipse.ui.menus">
55       <menuContribution
56             locationURI="popup:org.eclipse.ui.projectConfigure">
57          <command
58                commandId="net.mograsim.plugin.core.addMograsimNature"
59                label="%command.label"
60                style="push">
61             <visibleWhen
62                   checkEnabled="false">
63                <not>
64                   <reference
65                         definitionId="net.mograsim.plugin.core.hasNature">
66                   </reference>
67                </not>
68             </visibleWhen>
69          </command>
70       </menuContribution>
71    </extension>
72    <extension
73          id="mograsimNature"
74          name="%extension.name.0"
75          point="org.eclipse.core.resources.natures">
76       <runtime>
77          <run
78                class="net.mograsim.plugin.nature.MograsimNature">
79          </run>
80       </runtime>
81       <builder
82             id="net.mograsim.plugin.nature.mograsimBuilder">
83       </builder>
84    </extension>
85    <extension
86          point="org.eclipse.ui.editors">
87       <!-- editorContentTypeBinding
88             contentTypeId="net.mograsim.plugin.asm"
89             editorId="org.eclipse.ui.genericeditor.GenericEditor">
90       </editorContentTypeBinding -->
91       <editor
92                 name="%editor.name.0"
93                 icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
94                 class="net.mograsim.plugin.tables.mi.InstructionView"
95                 id="net.mograsim.plugin.tables.mi.InstructionView">
96                 <contentTypeBinding contentTypeId="net.mograsim.plugin.mpm"/>
97       </editor>
98       <editor
99             class="net.mograsim.plugin.editors.MemoryEditor"
100             icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
101             id="net.mograsim.plugin.editors.memoryeditor"
102             name="Memory Editor">
103          <contentTypeBinding
104                contentTypeId="net.mograsim.plugin.mem">
105          </contentTypeBinding>
106       </editor>
107    </extension>
108    <extension
109          point="org.eclipse.ui.genericeditor.presentationReconcilers">
110       <presentationReconciler
111             class="net.mograsim.plugin.asm.editor.AsmPresentationReconciler"
112             contentType="net.mograsim.plugin.asm">
113       </presentationReconciler>
114    </extension>
115    <extension
116          point="org.eclipse.ui.genericeditor.hoverProviders">
117       <hoverProvider
118             class="net.mograsim.plugin.asm.editor.AsmHoverProvider"
119             contentType="net.mograsim.plugin.asm">
120       </hoverProvider>
121    </extension>
122    <extension
123          point="org.eclipse.ui.genericeditor.contentAssistProcessors">
124       <contentAssistProcessor
125             class="net.mograsim.plugin.asm.editor.AsmContentAssistProcessor"
126             contentType="net.mograsim.plugin.asm">
127       </contentAssistProcessor>
128    </extension>
129    <extension
130          point="org.eclipse.ui.genericeditor.autoEditStrategies">
131       <autoEditStrategy
132             class="net.mograsim.plugin.asm.editor.AsmAutoEditStrategy"
133             contentType="net.mograsim.plugin.asm">
134       </autoEditStrategy>
135    </extension>
136    <extension
137          point="org.eclipse.ui.genericeditor.reconcilers">
138       <reconciler
139             class="net.mograsim.plugin.asm.editor.AsmReconciler"
140             contentType="net.mograsim.plugin.asm">
141       </reconciler>
142    </extension>
143    <extension
144          point="org.eclipse.core.filebuffers.documentSetup">
145       <participant
146             class="net.mograsim.plugin.asm.editor.ValidatorDocumentSetupParticipant"
147             contentTypeId="net.mograsim.plugin.asm"
148             extensions="asm">
149       </participant>
150    </extension>
151    <extension
152          point="org.eclipse.ui.views">
153       <category
154             id="net.mograsim.plugin"
155             name="%category.name">
156       </category>
157       <view
158             allowMultiple="false"
159             category="net.mograsim.plugin"
160             class="net.mograsim.plugin.asm.AsmOpsEdit"
161             icon="icons/mograsim/orange/icon_orange_16.png"
162             id="net.mograsim.plugin.views.AsmOpsEdit"
163             inject="true"
164             name="%view.name">
165       </view>
166       <view
167             category="net.mograsim.plugin"
168             class="net.mograsim.plugin.views.SimulationView"
169             icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
170             id="net.mograsim.plugin.simulationview"
171             name="Simulation View"
172             restorable="true">
173       </view>
174    </extension>
175    <extension
176          id="net.mograsim.plugin.nature.mograsimBuilder"
177          name="%extension.name"
178          point="org.eclipse.core.resources.builders">
179       <builder
180             hasNature="true">
181          <run
182                class="net.mograsim.plugin.nature.MograsimBuilder">
183          </run>
184       </builder>
185    </extension>
186    <extension
187          id="asmProblem"
188          name="%extension.name.1"
189          point="org.eclipse.core.resources.markers">
190       <super
191             type="org.eclipse.core.resources.problemmarker">
192       </super>
193       <persistent
194             value="true">
195       </persistent>
196    </extension>
197    <extension
198          point="org.eclipse.ui.themes">
199       <themeElementCategory
200             class="net.mograsim.plugin.SimulationPreview"
201             id="net.mograsim.plugin.mograsim"
202             label="%themeElementCategory.label">
203       </themeElementCategory>
204       <themeElementCategory
205             class="net.mograsim.plugin.SimulationPreview"
206             id="net.mograsim.logic.model"
207             label="%themeElementCategory.label.0"
208             parentId="net.mograsim.plugin.mograsim">
209       </themeElementCategory>
210       <themeElementCategory
211             class="net.mograsim.plugin.SimulationPreview"
212             id="net.mograsim.plugin.mi"
213             label="%themeElementCategory.label.1"
214             parentId="net.mograsim.plugin.mograsim">
215       </themeElementCategory>
216       <themeElementCategory
217             class="net.mograsim.plugin.SimulationPreview"
218             id="net.mograsim.plugin.memory"
219             label="%themeElementCategory.label.2"
220             parentId="net.mograsim.plugin.mograsim">
221       </themeElementCategory>
222       <colorDefinition
223             categoryId="net.mograsim.logic.model"
224             id="net.mograsim.logic.model.color.background"
225             isEditable="true"
226             label="%colorDefinition.label"
227             value="COLOR_WHITE">
228          <description>
229             %colorDefinition.description
230          </description>
231       </colorDefinition>
232       <colorDefinition
233             categoryId="net.mograsim.logic.model"
234             id="net.mograsim.logic.model.color.foreground"
235             isEditable="true"
236             label="%colorDefinition.label.0"
237             value="COLOR_BLACK">
238       </colorDefinition>
239       <colorDefinition
240             categoryId="net.mograsim.logic.model"
241             id="net.mograsim.logic.model.color.text"
242             label="%colorDefinition.label.10"
243             value="COLOR_BLACK">
244       </colorDefinition>
245       <colorDefinition
246             categoryId="net.mograsim.logic.model"
247             id="net.mograsim.logic.model.color.bit.one"
248             isEditable="true"
249             label="%colorDefinition.label.5"
250             value="COLOR_GREEN">
251       </colorDefinition>
252       <colorDefinition
253             categoryId="net.mograsim.logic.model"
254             id="net.mograsim.logic.model.color.bit.u"
255             isEditable="true"
256             label="%colorDefinition.label.6"
257             value="COLOR_CYAN">
258       </colorDefinition>
259       <colorDefinition
260             categoryId="net.mograsim.logic.model"
261             id="net.mograsim.logic.model.color.bit.x"
262             isEditable="true"
263             label="%colorDefinition.label.7"
264             value="COLOR_RED">
265       </colorDefinition>
266       <colorDefinition
267             categoryId="net.mograsim.logic.model"
268             id="net.mograsim.logic.model.color.bit.z"
269             isEditable="true"
270             label="%colorDefinition.label.8"
271             value="COLOR_YELLOW">
272       </colorDefinition>
273       <colorDefinition
274             categoryId="net.mograsim.logic.model"
275             id="net.mograsim.logic.model.color.bit.zero"
276             isEditable="true"
277             label="%colorDefinition.label.9"
278             value="COLOR_GRAY">
279       </colorDefinition>
280       <colorDefinition
281             categoryId="net.mograsim.plugin.mograsim"
282             id="net.mograsim.plugin.asm_comment_color"
283             isEditable="true"
284             label="%colorDefinition.label.1"
285             value="COLOR_GREEN">
286       </colorDefinition>
287       <colorDefinition
288             categoryId="net.mograsim.plugin.mograsim"
289             id="net.mograsim.plugin.asm_label_color"
290             isEditable="true"
291             label="%colorDefinition.label.2"
292             value="COLOR_BLUE">
293       </colorDefinition>
294       <colorDefinition
295             categoryId="net.mograsim.plugin.mograsim"
296             id="net.mograsim.plugin.asm_operation_color"
297             isEditable="true"
298             label="%colorDefinition.label.3"
299             value="COLOR_RED">
300       </colorDefinition>
301       <colorDefinition
302             categoryId="net.mograsim.plugin.mograsim"
303             id="net.mograsim.plugin.asm_number_color"
304             isEditable="true"
305             label="%colorDefinition.label.4"
306             value="COLOR_MAGENTA">
307       </colorDefinition>
308       <fontDefinition
309             categoryId="net.mograsim.plugin.mograsim"
310             id="net.mograsim.plugin.asm_operation_font"
311             isEditable="true"
312             label="%fontDefinition.label">
313       </fontDefinition>
314       <colorDefinition
315             categoryId="net.mograsim.plugin.mi"
316             id="net.mograsim.plugin.mi.modified_cell_bg_color"
317             isEditable="true"
318             label="%colorDefinition.label.11"
319             value="COLOR_GREEN">
320       </colorDefinition>
321       <colorDefinition
322             categoryId="net.mograsim.plugin.mi"
323             id="net.mograsim.plugin.mi.modified_cell_fg_color"
324             isEditable="true"
325             label="%colorDefinition.label.12"
326             value="COLOR_BLACK">
327       </colorDefinition>
328       <colorDefinition
329             categoryId="net.mograsim.plugin.mi"
330             id="net.mograsim.plugin.mi.highlighted_cell_bg_color"
331             isEditable="true"
332             label="%colorDefinition.label.13"
333             value="COLOR_YELLOW">
334       </colorDefinition>
335       <colorDefinition
336             categoryId="net.mograsim.plugin.mi"
337             id="net.mograsim.plugin.mi.highlighted_cell_fg_color"
338             isEditable="true"
339             label="%colorDefinition.label.14"
340             value="COLOR_BLACK">
341       </colorDefinition>
342       <fontDefinition
343             categoryId="net.mograsim.plugin.mi"
344             id="net.mograsim.plugin.mi.table_font"
345             isEditable="true"
346             label="%fontDefinition.label.0">
347       </fontDefinition>
348       <fontDefinition
349             categoryId="net.mograsim.plugin.memory"
350             id="net.mograsim.plugin.memory.table_font"
351             isEditable="true"
352             label="%fontDefinition.label.1">
353       </fontDefinition>
354    </extension>
355    <extension
356          point="org.eclipse.ui.preferencePages">
357       <page
358             class="net.mograsim.plugin.MainPreferencePage"
359             id="net.mograsim.plugin.core.mainprefpage"
360             name="Mograsim">
361       </page>
362    </extension>
363    <extension
364          point="org.eclipse.ui.propertyPages">
365       <page
366             class="net.mograsim.plugin.nature.properties.MograsimNaturePropertyPage"
367             id="net.mograsim.plugin.nature.properties.samplePropertyPage"
368             name="Mograsim">
369          <enabledWhen>
370             <reference
371                   definitionId="net.mograsim.plugin.core.hasNature">
372             </reference>
373          </enabledWhen>
374       </page>
375    </extension>
376    <extension
377          point="org.eclipse.ui.ide.projectNatureImages">
378       <image
379             icon="icons/mograsim/blue-orange/icon_blue-orange_7x8.png"
380             id="net.mograsim.plugin.core.nature.icon"
381             natureId="net.mograsim.plugin.core.mograsimNature">
382       </image>
383    </extension>
384    <extension
385          point="org.eclipse.ui.commands">
386       <category
387             id="net.mograsim.plugin.mograsimNature.category"
388             name="%category.name.0">
389       </category>
390       <command
391             categoryId="net.mograsim.plugin.mograsimNature.category"
392             defaultHandler="net.mograsim.plugin.nature.AddMograsimNatureHandler"
393             id="net.mograsim.plugin.core.addMograsimNature"
394             name="%command.name">
395       </command>
396    </extension>
397         <extension
398                 point="org.eclipse.ui.newWizards">
399                 <category
400                         name="%wizards.newWizards.category"
401                         id="net.mograsim.plugin.wizards.newWizards.category">
402                 </category>
403                 <wizard
404                         id="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
405                         name="%wizards.newWizards.mpm.name"
406                         class="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
407                         category="net.mograsim.plugin.wizards.newWizards.category"
408                         icon="icons/mograsim/blue-orange/icon_blue-orange_16.png">
409                         <description>%wizards.newWizards.mpm.desc</description>
410                         <selection class="org.eclipse.core.resources.IResource"/>
411                 </wizard>
412                 <wizard
413                         id="net.mograsim.plugin.wizards.newWizards.NewWizardMEM"
414                         name="%wizards.newWizards.mem.name"
415                         class="net.mograsim.plugin.wizards.newWizards.NewWizardMEM"
416                         category="net.mograsim.plugin.wizards.newWizards.category"
417                         icon="icons/mograsim/blue-orange/icon_blue-orange_16.png">
418                         <description>%wizards.newWizards.mem.desc</description>
419                         <selection class="org.eclipse.core.resources.IResource"/>
420                 </wizard>
421   <wizard
422         category="net.mograsim.plugin.wizards.newWizards.category"
423         class="net.mograsim.plugin.wizards.newWizards.NewMograsimProject"
424         descriptionImage="icons/mograsim/logo/logo_blue-orange_128.png"
425         finalPerspective="net.mograsim.plugin.core.mograsimDefaultPerspective"
426         icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
427         id="net.mograsim.plugin.wizards.newWizards.NewProjectWizzard"
428         name="%wizards.newWizards.project.name"
429         project="true">
430      <description>
431         %wizards.newWizards.project.desc
432      </description>
433      <selection
434            class="org.eclipse.core.resources.IResource">
435      </selection>
436   </wizard>
437         </extension>
438  <extension
439        point="org.eclipse.debug.core.launchConfigurationTypes">
440     <launchConfigurationType
441           delegate="net.mograsim.plugin.launch.MachineLaunchConfigType"
442           id="net.mograsim.plugin.core.launchmachine.type"
443           modes="run, debug"
444           name="Mograsim machine">
445     </launchConfigurationType>
446  </extension>
447  <extension
448        point="org.eclipse.debug.ui.launchConfigurationTabGroups">
449     <launchConfigurationTabGroup
450           class="net.mograsim.plugin.launch.EmptyLaunchConfigTabGroup"
451           id="net.mograsim.plugin.core.launchmachine.tabgroup"
452           type="net.mograsim.plugin.core.launchmachine.type">
453     </launchConfigurationTabGroup>
454  </extension>
455  <extension
456        point="org.eclipse.debug.ui.launchConfigurationTabs">
457     <tab
458           class="net.mograsim.plugin.launch.MainMachineLaunchConfigTab"
459           group="net.mograsim.plugin.core.launchmachine.tabgroup"
460           id="net.mograsim.plugin.core.launchmachine.maintab"
461           name="Common">
462     </tab>
463  </extension>
464  <extension
465        point="org.eclipse.debug.ui.launchConfigurationTypeImages">
466     <launchConfigurationTypeImage
467           configTypeID="net.mograsim.plugin.core.launchmachine.type"
468           icon="icons/mograsim/orange/icon_orange_16.png"
469           id="net.mograsim.plugin.core.launchmachine.image">
470     </launchConfigurationTypeImage>
471  </extension>
472  <extension
473        point="org.eclipse.debug.ui.memoryRenderings">
474     <renderingBindings
475           defaultIds="org.eclipse.debug.ui.rendering.raw_memory"
476           primaryId="org.eclipse.debug.ui.rendering.raw_memory"
477           renderingIds="org.eclipse.debug.ui.rendering.raw_memory,org.eclipse.debug.ui.rendering.hexint,org.eclipse.debug.ui.rendering.signedint,org.eclipse.debug.ui.rendering.unsignedint,org.eclipse.debug.ui.rendering.ascii">
478     </renderingBindings>
479  </extension>
480  <extension
481        point="org.eclipse.ui.perspectives">
482     <perspective
483           class="net.mograsim.plugin.perspectives.MograsimPerspective"
484           icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
485           id="net.mograsim.plugin.core.mograsimDefaultPerspective"
486           name="Mograsim">
487     </perspective>
488  </extension>
489  <extension
490        point="org.eclipse.ui.perspectiveExtensions">
491     <perspectiveExtension
492           targetID="net.mograsim.plugin.core.mograsimDefaultPerspective">
493        <newWizardShortcut
494              id="net.mograsim.plugin.wizards.newWizards.NewWizardMEM">
495        </newWizardShortcut>
496        <newWizardShortcut
497              id="net.mograsim.plugin.wizards.newWizards.NewWizardMPM">
498        </newWizardShortcut>
499        <viewShortcut
500              id="net.mograsim.plugin.simulationview">
501        </viewShortcut>
502        <viewShortcut
503              id="org.eclipse.debug.ui.MemoryView">
504        </viewShortcut>
505        <viewShortcut
506              id="org.eclipse.debug.ui.DebugView">
507        </viewShortcut>
508        <viewShortcut
509              id="org.eclipse.debug.ui.RegisterView">
510        </viewShortcut>
511        <viewShortcut
512              id="org.eclipse.ui.navigator.ProjectExplorer">
513        </viewShortcut>
514        <perspectiveShortcut
515              id="net.mograsim.plugin.core.mograsimDefaultPerspective">
516        </perspectiveShortcut>
517        <perspectiveShortcut
518              id="org.eclipse.ui.resourcePerspective">
519        </perspectiveShortcut>
520        <view
521              id="org.eclipse.ui.navigator.ProjectExplorer"
522              minimized="false"
523              ratio="0.18"
524              relationship="left"
525              relative="org.eclipse.ui.editorss">
526        </view>
527        <view
528              id="org.eclipse.debug.ui.DebugView"
529              minimized="false"
530              relationship="stack"
531              relative="org.eclipse.ui.navigator.ProjectExplorer">
532        </view>
533        <view
534              id="org.eclipse.debug.ui.MemoryView"
535              minimized="false"
536              ratio="0.82"
537              relationship="right"
538              relative="org.eclipse.ui.editorss">
539        </view>
540        <view
541              id="org.eclipse.debug.ui.RegisterView"
542              minimized="false"
543              ratio="0.5"
544              relationship="top"
545              relative="org.eclipse.debug.ui.MemoryView">
546        </view>
547        <view
548              id="net.mograsim.plugin.simulationview"
549              minimized="false"
550              ratio="0.35"
551              relationship="bottom"
552              relative="org.eclipse.ui.editorss"
553              visible="true">
554        </view>
555        <actionSet
556              id="org.eclipse.debug.ui.debugActionSet">
557        </actionSet>
558        <actionSet
559              id="org.eclipse.debug.ui.launchActionSet">
560        </actionSet>
561        <newWizardShortcut
562              id="net.mograsim.plugin.wizards.newWizards.NewProjectWizzard">
563        </newWizardShortcut>
564     </perspectiveExtension>
565     <perspectiveExtension
566           targetID="org.eclipse.ui.resourcePerspective">
567        <perspectiveShortcut
568              id="net.mograsim.plugin.core.mograsimDefaultPerspective">
569        </perspectiveShortcut>
570     </perspectiveExtension>
571     <perspectiveExtension
572           targetID="org.eclipse.jdt.ui.JavaPerspective">
573        <perspectiveShortcut
574              id="net.mograsim.plugin.core.mograsimDefaultPerspective">
575        </perspectiveShortcut>
576     </perspectiveExtension>
577  </extension>
578 </plugin>