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