Non-default values are now highlighted in the InstructionTable
[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.SimulationViewEditor"
100             icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
101             id="net.mograsim.plugin.editors.simulationvieweditor"
102             name="Simulation View Editor">
103                 <contentTypeBinding contentTypeId="net.mograsim.plugin.regs"/>
104       </editor>
105       <editor
106             class="net.mograsim.plugin.editors.MemoryEditor"
107             icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
108             id="net.mograsim.plugin.editors.memoryeditor"
109             name="Memory Editor">
110          <contentTypeBinding
111                contentTypeId="net.mograsim.plugin.mem">
112          </contentTypeBinding>
113       </editor>
114    </extension>
115    <extension
116          point="org.eclipse.ui.genericeditor.presentationReconcilers">
117       <presentationReconciler
118             class="net.mograsim.plugin.asm.editor.AsmPresentationReconciler"
119             contentType="net.mograsim.plugin.asm">
120       </presentationReconciler>
121    </extension>
122    <extension
123          point="org.eclipse.ui.genericeditor.hoverProviders">
124       <hoverProvider
125             class="net.mograsim.plugin.asm.editor.AsmHoverProvider"
126             contentType="net.mograsim.plugin.asm">
127       </hoverProvider>
128    </extension>
129    <extension
130          point="org.eclipse.ui.genericeditor.contentAssistProcessors">
131       <contentAssistProcessor
132             class="net.mograsim.plugin.asm.editor.AsmContentAssistProcessor"
133             contentType="net.mograsim.plugin.asm">
134       </contentAssistProcessor>
135    </extension>
136    <extension
137          point="org.eclipse.ui.genericeditor.autoEditStrategies">
138       <autoEditStrategy
139             class="net.mograsim.plugin.asm.editor.AsmAutoEditStrategy"
140             contentType="net.mograsim.plugin.asm">
141       </autoEditStrategy>
142    </extension>
143    <extension
144          point="org.eclipse.ui.genericeditor.reconcilers">
145       <reconciler
146             class="net.mograsim.plugin.asm.editor.AsmReconciler"
147             contentType="net.mograsim.plugin.asm">
148       </reconciler>
149    </extension>
150    <extension
151          point="org.eclipse.core.filebuffers.documentSetup">
152       <participant
153             class="net.mograsim.plugin.asm.editor.ValidatorDocumentSetupParticipant"
154             contentTypeId="net.mograsim.plugin.asm"
155             extensions="asm">
156       </participant>
157    </extension>
158    <extension
159          point="org.eclipse.ui.views">
160       <category
161             id="net.mograsim.plugin"
162             name="%category.name">
163       </category>
164       <view
165             allowMultiple="false"
166             category="net.mograsim.plugin"
167             class="net.mograsim.plugin.asm.AsmOpsEdit"
168             icon="icons/mograsim/orange/icon_orange_16.png"
169             id="net.mograsim.plugin.views.AsmOpsEdit"
170             inject="true"
171             name="%view.name">
172       </view>
173    </extension>
174    <extension
175          id="net.mograsim.plugin.nature.mograsimBuilder"
176          name="%extension.name"
177          point="org.eclipse.core.resources.builders">
178       <builder
179             hasNature="true">
180          <run
181                class="net.mograsim.plugin.nature.MograsimBuilder">
182          </run>
183       </builder>
184    </extension>
185    <extension
186          id="asmProblem"
187          name="%extension.name.1"
188          point="org.eclipse.core.resources.markers">
189       <super
190             type="org.eclipse.core.resources.problemmarker">
191       </super>
192       <persistent
193             value="true">
194       </persistent>
195    </extension>
196    <extension
197          point="org.eclipse.ui.themes">
198       <themeElementCategory
199             class="net.mograsim.plugin.SimulationPreview"
200             id="net.mograsim.plugin.mograsim"
201             label="%themeElementCategory.label">
202       </themeElementCategory>
203       <themeElementCategory
204             class="net.mograsim.plugin.SimulationPreview"
205             id="net.mograsim.logic.model"
206             label="%themeElementCategory.label.0"
207             parentId="net.mograsim.plugin.mograsim">
208       </themeElementCategory>
209       <themeElementCategory
210             class="net.mograsim.plugin.SimulationPreview"
211             id="net.mograsim.plugin.mi"
212             label="%themeElementCategory.label.1">
213       </themeElementCategory>
214       <colorDefinition
215             categoryId="net.mograsim.logic.model"
216             id="net.mograsim.logic.model.color.background"
217             isEditable="true"
218             label="%colorDefinition.label"
219             value="COLOR_WHITE">
220          <description>
221             %colorDefinition.description
222          </description>
223       </colorDefinition>
224       <colorDefinition
225             categoryId="net.mograsim.logic.model"
226             id="net.mograsim.logic.model.color.foreground"
227             isEditable="true"
228             label="%colorDefinition.label.0"
229             value="COLOR_BLACK">
230       </colorDefinition>
231       <colorDefinition
232             categoryId="net.mograsim.logic.model"
233             id="net.mograsim.logic.model.color.text"
234             label="%colorDefinition.label.10"
235             value="COLOR_BLACK">
236       </colorDefinition>
237       <colorDefinition
238             categoryId="net.mograsim.logic.model"
239             id="net.mograsim.logic.model.color.bit.one"
240             isEditable="true"
241             label="%colorDefinition.label.5"
242             value="COLOR_GREEN">
243       </colorDefinition>
244       <colorDefinition
245             categoryId="net.mograsim.logic.model"
246             id="net.mograsim.logic.model.color.bit.u"
247             isEditable="true"
248             label="%colorDefinition.label.6"
249             value="COLOR_CYAN">
250       </colorDefinition>
251       <colorDefinition
252             categoryId="net.mograsim.logic.model"
253             id="net.mograsim.logic.model.color.bit.x"
254             isEditable="true"
255             label="%colorDefinition.label.7"
256             value="COLOR_RED">
257       </colorDefinition>
258       <colorDefinition
259             categoryId="net.mograsim.logic.model"
260             id="net.mograsim.logic.model.color.bit.z"
261             isEditable="true"
262             label="%colorDefinition.label.8"
263             value="COLOR_YELLOW">
264       </colorDefinition>
265       <colorDefinition
266             categoryId="net.mograsim.logic.model"
267             id="net.mograsim.logic.model.color.bit.zero"
268             isEditable="true"
269             label="%colorDefinition.label.9"
270             value="COLOR_GRAY">
271       </colorDefinition>
272       <colorDefinition
273             categoryId="net.mograsim.plugin.mograsim"
274             id="net.mograsim.plugin.asm_comment_color"
275             isEditable="true"
276             label="%colorDefinition.label.1"
277             value="COLOR_GREEN">
278       </colorDefinition>
279       <colorDefinition
280             categoryId="net.mograsim.plugin.mograsim"
281             id="net.mograsim.plugin.asm_label_color"
282             isEditable="true"
283             label="%colorDefinition.label.2"
284             value="COLOR_BLUE">
285       </colorDefinition>
286       <colorDefinition
287             categoryId="net.mograsim.plugin.mograsim"
288             id="net.mograsim.plugin.asm_operation_color"
289             isEditable="true"
290             label="%colorDefinition.label.3"
291             value="COLOR_RED">
292       </colorDefinition>
293       <colorDefinition
294             categoryId="net.mograsim.plugin.mograsim"
295             id="net.mograsim.plugin.asm_number_color"
296             isEditable="true"
297             label="%colorDefinition.label.4"
298             value="COLOR_MAGENTA">
299       </colorDefinition>
300       <fontDefinition
301             categoryId="net.mograsim.plugin.mograsim"
302             id="net.mograsim.plugin.asm_operation_font"
303             isEditable="true"
304             label="%fontDefinition.label">
305       </fontDefinition>
306       <colorDefinition
307             categoryId="net.mograsim.plugin.mi"
308             id="net.mograsim.plugin.modified_cell_bg_color"
309             isEditable="true"
310             label="%colorDefinition.label.11"
311             value="COLOR_BLUE">
312       </colorDefinition>
313       <colorDefinition
314             categoryId="net.mograsim.plugin.mi"
315             id="net.mograsim.plugin.modified_cell_fg_color"
316             isEditable="true"
317             label="%colorDefinition.label.12"
318             value="COLOR_WHITE">
319       </colorDefinition>
320    </extension>
321    <extension
322          point="org.eclipse.ui.preferencePages">
323       <page
324             class="net.mograsim.plugin.MainPreferencePage"
325             id="net.mograsim.plugin.core.mainprefpage"
326             name="Mograsim">
327       </page>
328    </extension>
329    <extension
330          point="org.eclipse.ui.propertyPages">
331       <page
332             class="net.mograsim.plugin.nature.properties.MograsimNaturePropertyPage"
333             id="net.mograsim.plugin.nature.properties.samplePropertyPage"
334             name="Mograsim">
335          <enabledWhen>
336             <reference
337                   definitionId="net.mograsim.plugin.core.hasNature">
338             </reference>
339          </enabledWhen>
340       </page>
341    </extension>
342    <extension
343          point="org.eclipse.ui.ide.projectNatureImages">
344       <image
345             icon="icons/mograsim/blue-orange/icon_blue-orange_7x8.png"
346             id="net.mograsim.plugin.core.nature.icon"
347             natureId="net.mograsim.plugin.core.mograsimNature">
348       </image>
349    </extension>
350    <extension
351          point="org.eclipse.ui.commands">
352       <category
353             id="net.mograsim.plugin.mograsimNature.category"
354             name="%category.name.0">
355       </category>
356       <command
357             categoryId="net.mograsim.plugin.mograsimNature.category"
358             defaultHandler="net.mograsim.plugin.nature.AddMograsimNatureHandler"
359             id="net.mograsim.plugin.core.addMograsimNature"
360             name="%command.name">
361       </command>
362    </extension>
363         <extension
364                 point="org.eclipse.ui.newWizards">
365                 <category
366                         name="%wizards.newWizards.category"
367                         id="net.mograsim.plugin.wizards.newWizards.category">
368                 </category>
369                 <wizard
370                         id="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
371                         name="%wizards.newWizards.mpm.name"
372                         class="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
373                         category="net.mograsim.plugin.wizards.newWizards.category"
374                         icon="icons/mograsim/blue-orange/icon_blue-orange_16.png">
375                         <description>%wizards.newWizards.mpm.desc</description>
376                         <selection class="org.eclipse.core.resources.IResource"/>
377                 </wizard>
378         </extension>
379 </plugin>