Made simulation view / LogicUIPart to an Editor
[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    </extension>
45    <extension
46          point="org.eclipse.ui.menus">
47       <menuContribution
48             locationURI="popup:org.eclipse.ui.projectConfigure">
49          <command
50                commandId="net.mograsim.plugin.core.addMograsimNature"
51                label="%command.label"
52                style="push">
53             <visibleWhen
54                   checkEnabled="false">
55                <not>
56                   <reference
57                         definitionId="net.mograsim.plugin.core.hasNature">
58                   </reference>
59                </not>
60             </visibleWhen>
61          </command>
62       </menuContribution>
63    </extension>
64    <extension
65          id="mograsimNature"
66          name="%extension.name.0"
67          point="org.eclipse.core.resources.natures">
68       <runtime>
69          <run
70                class="net.mograsim.plugin.nature.MograsimNature">
71          </run>
72       </runtime>
73       <builder
74             id="net.mograsim.plugin.nature.mograsimBuilder">
75       </builder>
76    </extension>
77    <extension
78          point="org.eclipse.ui.editors">
79       <editorContentTypeBinding
80             contentTypeId="net.mograsim.plugin.asm"
81             editorId="org.eclipse.ui.genericeditor.GenericEditor">
82       </editorContentTypeBinding>
83       <editor
84                 name="%editor.name.0"
85                 icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
86                 class="net.mograsim.plugin.tables.mi.InstructionView"
87                 id="net.mograsim.plugin.tables.mi.InstructionView">
88                 <contentTypeBinding contentTypeId="net.mograsim.plugin.mpm"/>
89       </editor>
90       <editor
91             class="net.mograsim.plugin.editors.SimulationViewEditor"
92             icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
93             id="net.mograsim.plugin.editors.simulationvieweditor"
94             name="Simulation View Editor">
95                 <contentTypeBinding contentTypeId="net.mograsim.plugin.regs"/>
96       </editor>
97    </extension>
98    <extension
99          point="org.eclipse.ui.genericeditor.presentationReconcilers">
100       <presentationReconciler
101             class="net.mograsim.plugin.asm.editor.AsmPresentationReconciler"
102             contentType="net.mograsim.plugin.asm">
103       </presentationReconciler>
104    </extension>
105    <extension
106          point="org.eclipse.ui.genericeditor.hoverProviders">
107       <hoverProvider
108             class="net.mograsim.plugin.asm.editor.AsmHoverProvider"
109             contentType="net.mograsim.plugin.asm">
110       </hoverProvider>
111    </extension>
112    <extension
113          point="org.eclipse.ui.genericeditor.contentAssistProcessors">
114       <contentAssistProcessor
115             class="net.mograsim.plugin.asm.editor.AsmContentAssistProcessor"
116             contentType="net.mograsim.plugin.asm">
117       </contentAssistProcessor>
118    </extension>
119    <extension
120          point="org.eclipse.ui.genericeditor.autoEditStrategies">
121       <autoEditStrategy
122             class="net.mograsim.plugin.asm.editor.AsmAutoEditStrategy"
123             contentType="net.mograsim.plugin.asm">
124       </autoEditStrategy>
125    </extension>
126    <extension
127          point="org.eclipse.ui.genericeditor.reconcilers">
128       <reconciler
129             class="net.mograsim.plugin.asm.editor.AsmReconciler"
130             contentType="net.mograsim.plugin.asm">
131       </reconciler>
132    </extension>
133    <extension
134          point="org.eclipse.core.filebuffers.documentSetup">
135       <participant
136             class="net.mograsim.plugin.asm.editor.ValidatorDocumentSetupParticipant"
137             contentTypeId="net.mograsim.plugin.asm"
138             extensions="asm">
139       </participant>
140    </extension>
141    <extension
142          point="org.eclipse.ui.views">
143       <category
144             id="net.mograsim.plugin"
145             name="%category.name">
146       </category>
147       <view
148             allowMultiple="false"
149             category="net.mograsim.plugin"
150             class="net.mograsim.plugin.asm.AsmOpsEdit"
151             icon="icons/mograsim/orange/icon_orange_16.png"
152             id="net.mograsim.plugin.views.AsmOpsEdit"
153             inject="true"
154             name="%view.name">
155       </view>
156       <view
157             category="net.mograsim.plugin"
158                 id="net.mograsim.plugin.tables.memory.MemoryView"
159                 class="net.mograsim.plugin.tables.memory.MemoryView"
160             icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
161                 name="%view.name.1">
162       </view>
163    </extension>
164    <extension
165          id="net.mograsim.plugin.nature.mograsimBuilder"
166          name="%extension.name"
167          point="org.eclipse.core.resources.builders">
168       <builder
169             hasNature="true">
170          <run
171                class="net.mograsim.plugin.nature.MograsimBuilder">
172          </run>
173       </builder>
174    </extension>
175    <extension
176          id="asmProblem"
177          name="%extension.name.1"
178          point="org.eclipse.core.resources.markers">
179       <super
180             type="org.eclipse.core.resources.problemmarker">
181       </super>
182       <persistent
183             value="true">
184       </persistent>
185    </extension>
186    <extension
187          point="org.eclipse.ui.themes">
188       <themeElementCategory
189             class="net.mograsim.plugin.SimulationPreview"
190             id="net.mograsim.plugin.mograsim"
191             label="%themeElementCategory.label">
192       </themeElementCategory>
193       <themeElementCategory
194             class="net.mograsim.plugin.SimulationPreview"
195             id="net.mograsim.logic.model"
196             label="%themeElementCategory.label.0"
197             parentId="net.mograsim.plugin.mograsim">
198       </themeElementCategory>
199       <colorDefinition
200             categoryId="net.mograsim.logic.model"
201             id="net.mograsim.logic.model.color.background"
202             isEditable="true"
203             label="%colorDefinition.label"
204             value="COLOR_WHITE">
205          <description>
206             %colorDefinition.description
207          </description>
208       </colorDefinition>
209       <colorDefinition
210             categoryId="net.mograsim.logic.model"
211             id="net.mograsim.logic.model.color.foreground"
212             isEditable="true"
213             label="%colorDefinition.label.0"
214             value="COLOR_BLACK">
215       </colorDefinition>
216       <colorDefinition
217             categoryId="net.mograsim.logic.model"
218             id="net.mograsim.logic.model.color.text"
219             label="%colorDefinition.label.10"
220             value="COLOR_BLACK">
221       </colorDefinition>
222       <colorDefinition
223             categoryId="net.mograsim.logic.model"
224             id="net.mograsim.logic.model.color.bit.one"
225             isEditable="true"
226             label="%colorDefinition.label.5"
227             value="COLOR_GREEN">
228       </colorDefinition>
229       <colorDefinition
230             categoryId="net.mograsim.logic.model"
231             id="net.mograsim.logic.model.color.bit.u"
232             isEditable="true"
233             label="%colorDefinition.label.6"
234             value="COLOR_CYAN">
235       </colorDefinition>
236       <colorDefinition
237             categoryId="net.mograsim.logic.model"
238             id="net.mograsim.logic.model.color.bit.x"
239             isEditable="true"
240             label="%colorDefinition.label.7"
241             value="COLOR_RED">
242       </colorDefinition>
243       <colorDefinition
244             categoryId="net.mograsim.logic.model"
245             id="net.mograsim.logic.model.color.bit.z"
246             isEditable="true"
247             label="%colorDefinition.label.8"
248             value="COLOR_YELLOW">
249       </colorDefinition>
250       <colorDefinition
251             categoryId="net.mograsim.logic.model"
252             id="net.mograsim.logic.model.color.bit.zero"
253             isEditable="true"
254             label="%colorDefinition.label.9"
255             value="COLOR_GRAY">
256       </colorDefinition>
257       <colorDefinition
258             categoryId="net.mograsim.plugin.mograsim"
259             id="net.mograsim.plugin.asm_comment_color"
260             isEditable="true"
261             label="%colorDefinition.label.1"
262             value="COLOR_GREEN">
263       </colorDefinition>
264       <colorDefinition
265             categoryId="net.mograsim.plugin.mograsim"
266             id="net.mograsim.plugin.asm_label_color"
267             isEditable="true"
268             label="%colorDefinition.label.2"
269             value="COLOR_BLUE">
270       </colorDefinition>
271       <colorDefinition
272             categoryId="net.mograsim.plugin.mograsim"
273             id="net.mograsim.plugin.asm_operation_color"
274             isEditable="true"
275             label="%colorDefinition.label.3"
276             value="COLOR_RED">
277       </colorDefinition>
278       <colorDefinition
279             categoryId="net.mograsim.plugin.mograsim"
280             id="net.mograsim.plugin.asm_number_color"
281             isEditable="true"
282             label="%colorDefinition.label.4"
283             value="COLOR_MAGENTA">
284       </colorDefinition>
285       <fontDefinition
286             categoryId="net.mograsim.plugin.mograsim"
287             id="net.mograsim.plugin.asm_operation_font"
288             isEditable="true"
289             label="%fontDefinition.label">
290       </fontDefinition>
291    </extension>
292    <extension
293          point="org.eclipse.ui.preferencePages">
294       <page
295             class="net.mograsim.plugin.MainPreferencePage"
296             id="net.mograsim.plugin.core.mainprefpage"
297             name="Mograsim">
298       </page>
299    </extension>
300    <extension
301          point="org.eclipse.ui.propertyPages">
302       <page
303             class="net.mograsim.plugin.nature.properties.MograsimNaturePropertyPage"
304             id="net.mograsim.plugin.nature.properties.samplePropertyPage"
305             name="Mograsim">
306          <enabledWhen>
307             <reference
308                   definitionId="net.mograsim.plugin.core.hasNature">
309             </reference>
310          </enabledWhen>
311       </page>
312    </extension>
313    <extension
314          point="org.eclipse.ui.ide.projectNatureImages">
315       <image
316             icon="icons/mograsim/blue-orange/icon_blue-orange_7x8.png"
317             id="net.mograsim.plugin.core.nature.icon"
318             natureId="net.mograsim.plugin.core.mograsimNature">
319       </image>
320    </extension>
321    <extension
322          point="org.eclipse.ui.commands">
323       <category
324             id="net.mograsim.plugin.mograsimNature.category"
325             name="%category.name.0">
326       </category>
327       <command
328             categoryId="net.mograsim.plugin.mograsimNature.category"
329             defaultHandler="net.mograsim.plugin.nature.AddMograsimNatureHandler"
330             id="net.mograsim.plugin.core.addMograsimNature"
331             name="%command.name">
332       </command>
333    </extension>
334         <extension
335                 point="org.eclipse.ui.newWizards">
336                 <category
337                         name="%wizards.newWizards.category"
338                         id="net.mograsim.plugin.wizards.newWizards.category">
339                 </category>
340                 <wizard
341                         id="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
342                         name="%wizards.newWizards.mpm.name"
343                         class="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
344                         category="net.mograsim.plugin.wizards.newWizards.category"
345                         icon="icons/mograsim/blue-orange/icon_blue-orange_16.png">
346                         <description>%wizards.newWizards.mpm.desc</description>
347                         <selection class="org.eclipse.core.resources.IResource"/>
348                 </wizard>
349         </extension>
350 </plugin>