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