c48d9c43a95452cd3a84a9f865fd77963e96de3d
[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       <colorDefinition
210             categoryId="net.mograsim.logic.model"
211             id="net.mograsim.logic.model.color.background"
212             isEditable="true"
213             label="%colorDefinition.label"
214             value="COLOR_WHITE">
215          <description>
216             %colorDefinition.description
217          </description>
218       </colorDefinition>
219       <colorDefinition
220             categoryId="net.mograsim.logic.model"
221             id="net.mograsim.logic.model.color.foreground"
222             isEditable="true"
223             label="%colorDefinition.label.0"
224             value="COLOR_BLACK">
225       </colorDefinition>
226       <colorDefinition
227             categoryId="net.mograsim.logic.model"
228             id="net.mograsim.logic.model.color.text"
229             label="%colorDefinition.label.10"
230             value="COLOR_BLACK">
231       </colorDefinition>
232       <colorDefinition
233             categoryId="net.mograsim.logic.model"
234             id="net.mograsim.logic.model.color.bit.one"
235             isEditable="true"
236             label="%colorDefinition.label.5"
237             value="COLOR_GREEN">
238       </colorDefinition>
239       <colorDefinition
240             categoryId="net.mograsim.logic.model"
241             id="net.mograsim.logic.model.color.bit.u"
242             isEditable="true"
243             label="%colorDefinition.label.6"
244             value="COLOR_CYAN">
245       </colorDefinition>
246       <colorDefinition
247             categoryId="net.mograsim.logic.model"
248             id="net.mograsim.logic.model.color.bit.x"
249             isEditable="true"
250             label="%colorDefinition.label.7"
251             value="COLOR_RED">
252       </colorDefinition>
253       <colorDefinition
254             categoryId="net.mograsim.logic.model"
255             id="net.mograsim.logic.model.color.bit.z"
256             isEditable="true"
257             label="%colorDefinition.label.8"
258             value="COLOR_YELLOW">
259       </colorDefinition>
260       <colorDefinition
261             categoryId="net.mograsim.logic.model"
262             id="net.mograsim.logic.model.color.bit.zero"
263             isEditable="true"
264             label="%colorDefinition.label.9"
265             value="COLOR_GRAY">
266       </colorDefinition>
267       <colorDefinition
268             categoryId="net.mograsim.plugin.mograsim"
269             id="net.mograsim.plugin.asm_comment_color"
270             isEditable="true"
271             label="%colorDefinition.label.1"
272             value="COLOR_GREEN">
273       </colorDefinition>
274       <colorDefinition
275             categoryId="net.mograsim.plugin.mograsim"
276             id="net.mograsim.plugin.asm_label_color"
277             isEditable="true"
278             label="%colorDefinition.label.2"
279             value="COLOR_BLUE">
280       </colorDefinition>
281       <colorDefinition
282             categoryId="net.mograsim.plugin.mograsim"
283             id="net.mograsim.plugin.asm_operation_color"
284             isEditable="true"
285             label="%colorDefinition.label.3"
286             value="COLOR_RED">
287       </colorDefinition>
288       <colorDefinition
289             categoryId="net.mograsim.plugin.mograsim"
290             id="net.mograsim.plugin.asm_number_color"
291             isEditable="true"
292             label="%colorDefinition.label.4"
293             value="COLOR_MAGENTA">
294       </colorDefinition>
295       <fontDefinition
296             categoryId="net.mograsim.plugin.mograsim"
297             id="net.mograsim.plugin.asm_operation_font"
298             isEditable="true"
299             label="%fontDefinition.label">
300       </fontDefinition>
301    </extension>
302    <extension
303          point="org.eclipse.ui.preferencePages">
304       <page
305             class="net.mograsim.plugin.MainPreferencePage"
306             id="net.mograsim.plugin.core.mainprefpage"
307             name="Mograsim">
308       </page>
309    </extension>
310    <extension
311          point="org.eclipse.ui.propertyPages">
312       <page
313             class="net.mograsim.plugin.nature.properties.MograsimNaturePropertyPage"
314             id="net.mograsim.plugin.nature.properties.samplePropertyPage"
315             name="Mograsim">
316          <enabledWhen>
317             <reference
318                   definitionId="net.mograsim.plugin.core.hasNature">
319             </reference>
320          </enabledWhen>
321       </page>
322    </extension>
323    <extension
324          point="org.eclipse.ui.ide.projectNatureImages">
325       <image
326             icon="icons/mograsim/blue-orange/icon_blue-orange_7x8.png"
327             id="net.mograsim.plugin.core.nature.icon"
328             natureId="net.mograsim.plugin.core.mograsimNature">
329       </image>
330    </extension>
331    <extension
332          point="org.eclipse.ui.commands">
333       <category
334             id="net.mograsim.plugin.mograsimNature.category"
335             name="%category.name.0">
336       </category>
337       <command
338             categoryId="net.mograsim.plugin.mograsimNature.category"
339             defaultHandler="net.mograsim.plugin.nature.AddMograsimNatureHandler"
340             id="net.mograsim.plugin.core.addMograsimNature"
341             name="%command.name">
342       </command>
343    </extension>
344         <extension
345                 point="org.eclipse.ui.newWizards">
346                 <category
347                         name="%wizards.newWizards.category"
348                         id="net.mograsim.plugin.wizards.newWizards.category">
349                 </category>
350                 <wizard
351                         id="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
352                         name="%wizards.newWizards.mpm.name"
353                         class="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
354                         category="net.mograsim.plugin.wizards.newWizards.category"
355                         icon="icons/mograsim/blue-orange/icon_blue-orange_16.png">
356                         <description>%wizards.newWizards.mpm.desc</description>
357                         <selection class="org.eclipse.core.resources.IResource"/>
358                 </wizard>
359         </extension>
360 </plugin>