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