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