Introduced a wizard for new MPROMs
[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                         id="net.mograsim.plugin.wizards.newWizards.NewWizardMPROM"
441                         name="%wizards.newWizards.mprom.name"
442                         class="net.mograsim.plugin.wizards.newWizards.NewWizardMPROM"
443                         category="net.mograsim.plugin.wizards.newWizards.category"
444                         icon="icons/mograsim/blue-orange/icon_blue-orange_16.png">
445                         <description>%wizards.newWizards.mprom.desc</description>
446                         <selection class="org.eclipse.core.resources.IResource"/>
447                 </wizard>
448   <wizard
449         category="net.mograsim.plugin.wizards.newWizards.category"
450         class="net.mograsim.plugin.wizards.newWizards.NewMograsimProject"
451         descriptionImage="icons/mograsim/logo/logo_blue-orange_128.png"
452         finalPerspective="net.mograsim.plugin.core.mograsimDefaultPerspective"
453         icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
454         id="net.mograsim.plugin.wizards.newWizards.NewProjectWizzard"
455         name="%wizards.newWizards.project.name"
456         project="true">
457      <description>
458         %wizards.newWizards.project.desc
459      </description>
460      <selection
461            class="org.eclipse.core.resources.IResource">
462      </selection>
463   </wizard>
464         </extension>
465  <extension
466        point="org.eclipse.debug.core.launchConfigurationTypes">
467     <launchConfigurationType
468           delegate="net.mograsim.plugin.launch.MachineLaunchConfigType"
469           id="net.mograsim.plugin.core.launchmachine.type"
470           modes="run, debug"
471           name="Mograsim machine">
472     </launchConfigurationType>
473  </extension>
474  <extension
475        point="org.eclipse.debug.ui.launchConfigurationTabGroups">
476     <launchConfigurationTabGroup
477           class="net.mograsim.plugin.launch.EmptyLaunchConfigTabGroup"
478           id="net.mograsim.plugin.core.launchmachine.tabgroup"
479           type="net.mograsim.plugin.core.launchmachine.type">
480     </launchConfigurationTabGroup>
481  </extension>
482  <extension
483        point="org.eclipse.debug.ui.launchConfigurationTabs">
484     <tab
485           class="net.mograsim.plugin.launch.MainMachineLaunchConfigTab"
486           group="net.mograsim.plugin.core.launchmachine.tabgroup"
487           id="net.mograsim.plugin.core.launchmachine.maintab"
488           name="Common">
489     </tab>
490  </extension>
491  <extension
492        point="org.eclipse.debug.ui.launchConfigurationTypeImages">
493     <launchConfigurationTypeImage
494           configTypeID="net.mograsim.plugin.core.launchmachine.type"
495           icon="icons/mograsim/orange/icon_orange_16.png"
496           id="net.mograsim.plugin.core.launchmachine.image">
497     </launchConfigurationTypeImage>
498  </extension>
499  <extension
500        point="org.eclipse.debug.ui.memoryRenderings">
501     <renderingBindings
502           defaultIds="org.eclipse.debug.ui.rendering.raw_memory"
503           primaryId="org.eclipse.debug.ui.rendering.raw_memory"
504           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">
505     </renderingBindings>
506  </extension>
507  <extension
508        point="org.eclipse.ui.perspectives">
509     <perspective
510           class="net.mograsim.plugin.perspectives.MograsimPerspective"
511           icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
512           id="net.mograsim.plugin.core.mograsimDefaultPerspective"
513           name="Mograsim">
514     </perspective>
515  </extension>
516  <extension
517        point="org.eclipse.ui.perspectiveExtensions">
518     <perspectiveExtension
519           targetID="net.mograsim.plugin.core.mograsimDefaultPerspective">
520        <newWizardShortcut
521              id="net.mograsim.plugin.wizards.newWizards.NewWizardMEM">
522        </newWizardShortcut>
523        <newWizardShortcut
524              id="net.mograsim.plugin.wizards.newWizards.NewWizardMPM">
525        </newWizardShortcut>
526        <viewShortcut
527              id="net.mograsim.plugin.simulationview">
528        </viewShortcut>
529        <viewShortcut
530              id="org.eclipse.debug.ui.MemoryView">
531        </viewShortcut>
532        <viewShortcut
533              id="org.eclipse.debug.ui.DebugView">
534        </viewShortcut>
535        <viewShortcut
536              id="org.eclipse.debug.ui.RegisterView">
537        </viewShortcut>
538        <viewShortcut
539              id="org.eclipse.ui.navigator.ProjectExplorer">
540        </viewShortcut>
541        <perspectiveShortcut
542              id="net.mograsim.plugin.core.mograsimDefaultPerspective">
543        </perspectiveShortcut>
544        <perspectiveShortcut
545              id="org.eclipse.ui.resourcePerspective">
546        </perspectiveShortcut>
547        <view
548              id="org.eclipse.ui.navigator.ProjectExplorer"
549              minimized="false"
550              ratio="0.18"
551              relationship="left"
552              relative="org.eclipse.ui.editorss">
553        </view>
554        <view
555              id="org.eclipse.debug.ui.DebugView"
556              minimized="false"
557              relationship="stack"
558              relative="org.eclipse.ui.navigator.ProjectExplorer">
559        </view>
560        <view
561              id="org.eclipse.debug.ui.MemoryView"
562              minimized="false"
563              ratio="0.82"
564              relationship="right"
565              relative="org.eclipse.ui.editorss">
566        </view>
567        <view
568              id="org.eclipse.debug.ui.RegisterView"
569              minimized="false"
570              ratio="0.5"
571              relationship="top"
572              relative="org.eclipse.debug.ui.MemoryView">
573        </view>
574        <view
575              id="net.mograsim.plugin.simulationview"
576              minimized="false"
577              ratio="0.35"
578              relationship="bottom"
579              relative="org.eclipse.ui.editorss"
580              visible="true">
581        </view>
582        <actionSet
583              id="org.eclipse.debug.ui.debugActionSet">
584        </actionSet>
585        <actionSet
586              id="org.eclipse.debug.ui.launchActionSet">
587        </actionSet>
588        <newWizardShortcut
589              id="net.mograsim.plugin.wizards.newWizards.NewProjectWizzard">
590        </newWizardShortcut>
591     </perspectiveExtension>
592     <perspectiveExtension
593           targetID="org.eclipse.ui.resourcePerspective">
594        <perspectiveShortcut
595              id="net.mograsim.plugin.core.mograsimDefaultPerspective">
596        </perspectiveShortcut>
597     </perspectiveExtension>
598     <perspectiveExtension
599           targetID="org.eclipse.jdt.ui.JavaPerspective">
600        <perspectiveShortcut
601              id="net.mograsim.plugin.core.mograsimDefaultPerspective">
602        </perspectiveShortcut>
603     </perspectiveExtension>
604  </extension>
605 </plugin>