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