Fixed typo in SimulationViewEditor
[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       <view
174             category="net.mograsim.plugin"
175                 id="net.mograsim.plugin.tables.memory.MemoryView"
176                 class="net.mograsim.plugin.tables.memory.MemoryView"
177             icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
178                 name="%view.name.1">
179       </view>
180    </extension>
181    <extension
182          id="net.mograsim.plugin.nature.mograsimBuilder"
183          name="%extension.name"
184          point="org.eclipse.core.resources.builders">
185       <builder
186             hasNature="true">
187          <run
188                class="net.mograsim.plugin.nature.MograsimBuilder">
189          </run>
190       </builder>
191    </extension>
192    <extension
193          id="asmProblem"
194          name="%extension.name.1"
195          point="org.eclipse.core.resources.markers">
196       <super
197             type="org.eclipse.core.resources.problemmarker">
198       </super>
199       <persistent
200             value="true">
201       </persistent>
202    </extension>
203    <extension
204          point="org.eclipse.ui.themes">
205       <themeElementCategory
206             class="net.mograsim.plugin.SimulationPreview"
207             id="net.mograsim.plugin.mograsim"
208             label="%themeElementCategory.label">
209       </themeElementCategory>
210       <themeElementCategory
211             class="net.mograsim.plugin.SimulationPreview"
212             id="net.mograsim.logic.model"
213             label="%themeElementCategory.label.0"
214             parentId="net.mograsim.plugin.mograsim">
215       </themeElementCategory>
216       <colorDefinition
217             categoryId="net.mograsim.logic.model"
218             id="net.mograsim.logic.model.color.background"
219             isEditable="true"
220             label="%colorDefinition.label"
221             value="COLOR_WHITE">
222          <description>
223             %colorDefinition.description
224          </description>
225       </colorDefinition>
226       <colorDefinition
227             categoryId="net.mograsim.logic.model"
228             id="net.mograsim.logic.model.color.foreground"
229             isEditable="true"
230             label="%colorDefinition.label.0"
231             value="COLOR_BLACK">
232       </colorDefinition>
233       <colorDefinition
234             categoryId="net.mograsim.logic.model"
235             id="net.mograsim.logic.model.color.text"
236             label="%colorDefinition.label.10"
237             value="COLOR_BLACK">
238       </colorDefinition>
239       <colorDefinition
240             categoryId="net.mograsim.logic.model"
241             id="net.mograsim.logic.model.color.bit.one"
242             isEditable="true"
243             label="%colorDefinition.label.5"
244             value="COLOR_GREEN">
245       </colorDefinition>
246       <colorDefinition
247             categoryId="net.mograsim.logic.model"
248             id="net.mograsim.logic.model.color.bit.u"
249             isEditable="true"
250             label="%colorDefinition.label.6"
251             value="COLOR_CYAN">
252       </colorDefinition>
253       <colorDefinition
254             categoryId="net.mograsim.logic.model"
255             id="net.mograsim.logic.model.color.bit.x"
256             isEditable="true"
257             label="%colorDefinition.label.7"
258             value="COLOR_RED">
259       </colorDefinition>
260       <colorDefinition
261             categoryId="net.mograsim.logic.model"
262             id="net.mograsim.logic.model.color.bit.z"
263             isEditable="true"
264             label="%colorDefinition.label.8"
265             value="COLOR_YELLOW">
266       </colorDefinition>
267       <colorDefinition
268             categoryId="net.mograsim.logic.model"
269             id="net.mograsim.logic.model.color.bit.zero"
270             isEditable="true"
271             label="%colorDefinition.label.9"
272             value="COLOR_GRAY">
273       </colorDefinition>
274       <colorDefinition
275             categoryId="net.mograsim.plugin.mograsim"
276             id="net.mograsim.plugin.asm_comment_color"
277             isEditable="true"
278             label="%colorDefinition.label.1"
279             value="COLOR_GREEN">
280       </colorDefinition>
281       <colorDefinition
282             categoryId="net.mograsim.plugin.mograsim"
283             id="net.mograsim.plugin.asm_label_color"
284             isEditable="true"
285             label="%colorDefinition.label.2"
286             value="COLOR_BLUE">
287       </colorDefinition>
288       <colorDefinition
289             categoryId="net.mograsim.plugin.mograsim"
290             id="net.mograsim.plugin.asm_operation_color"
291             isEditable="true"
292             label="%colorDefinition.label.3"
293             value="COLOR_RED">
294       </colorDefinition>
295       <colorDefinition
296             categoryId="net.mograsim.plugin.mograsim"
297             id="net.mograsim.plugin.asm_number_color"
298             isEditable="true"
299             label="%colorDefinition.label.4"
300             value="COLOR_MAGENTA">
301       </colorDefinition>
302       <fontDefinition
303             categoryId="net.mograsim.plugin.mograsim"
304             id="net.mograsim.plugin.asm_operation_font"
305             isEditable="true"
306             label="%fontDefinition.label">
307       </fontDefinition>
308    </extension>
309    <extension
310          point="org.eclipse.ui.preferencePages">
311       <page
312             class="net.mograsim.plugin.MainPreferencePage"
313             id="net.mograsim.plugin.core.mainprefpage"
314             name="Mograsim">
315       </page>
316    </extension>
317    <extension
318          point="org.eclipse.ui.propertyPages">
319       <page
320             class="net.mograsim.plugin.nature.properties.MograsimNaturePropertyPage"
321             id="net.mograsim.plugin.nature.properties.samplePropertyPage"
322             name="Mograsim">
323          <enabledWhen>
324             <reference
325                   definitionId="net.mograsim.plugin.core.hasNature">
326             </reference>
327          </enabledWhen>
328       </page>
329    </extension>
330    <extension
331          point="org.eclipse.ui.ide.projectNatureImages">
332       <image
333             icon="icons/mograsim/blue-orange/icon_blue-orange_7x8.png"
334             id="net.mograsim.plugin.core.nature.icon"
335             natureId="net.mograsim.plugin.core.mograsimNature">
336       </image>
337    </extension>
338    <extension
339          point="org.eclipse.ui.commands">
340       <category
341             id="net.mograsim.plugin.mograsimNature.category"
342             name="%category.name.0">
343       </category>
344       <command
345             categoryId="net.mograsim.plugin.mograsimNature.category"
346             defaultHandler="net.mograsim.plugin.nature.AddMograsimNatureHandler"
347             id="net.mograsim.plugin.core.addMograsimNature"
348             name="%command.name">
349       </command>
350    </extension>
351         <extension
352                 point="org.eclipse.ui.newWizards">
353                 <category
354                         name="%wizards.newWizards.category"
355                         id="net.mograsim.plugin.wizards.newWizards.category">
356                 </category>
357                 <wizard
358                         id="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
359                         name="%wizards.newWizards.mpm.name"
360                         class="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
361                         category="net.mograsim.plugin.wizards.newWizards.category"
362                         icon="icons/mograsim/blue-orange/icon_blue-orange_16.png">
363                         <description>%wizards.newWizards.mpm.desc</description>
364                         <selection class="org.eclipse.core.resources.IResource"/>
365                 </wizard>
366         </extension>
367 </plugin>