Finished renaming logic.ui to logic.model
[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    </extension>
92    <extension
93          id="net.mograsim.plugin.nature.mograsimBuilder"
94          name="%extension.name"
95          point="org.eclipse.core.resources.builders">
96       <builder
97             hasNature="true">
98          <run
99                class="net.mograsim.plugin.nature.MograsimBuilder">
100          </run>
101       </builder>
102    </extension>
103    <extension
104          id="mograsimNature"
105          name="%extension.name.0"
106          point="org.eclipse.core.resources.natures">
107       <runtime>
108          <run
109                class="net.mograsim.plugin.nature.MograsimNature">
110          </run>
111       </runtime>
112       <builder
113             id="net.mograsim.plugin.nature.mograsimBuilder">
114       </builder>
115    </extension>
116    <extension
117          point="org.eclipse.ui.commands">
118       <category
119             id="net.mograsim.plugin.mograsimNature.category"
120             name="%category.name.0">
121       </category>
122       <command
123             categoryId="net.mograsim.plugin.mograsimNature.category"
124             defaultHandler="net.mograsim.plugin.nature.AddRemoveMograsimNatureHandler"
125             id="net.mograsim.plugin.addRemoveMograsimNature"
126             name="%command.name">
127       </command>
128    </extension>
129    <extension
130          point="org.eclipse.ui.menus">
131       <menuContribution
132             locationURI="popup:org.eclipse.ui.projectConfigure?after=additions">
133          <command
134                commandId="net.mograsim.plugin.addRemoveMograsimNature"
135                label="%command.label"
136                style="push">
137             <visibleWhen
138                   checkEnabled="false">
139                <with
140                      variable="selection">
141                   <count
142                         value="1">
143                   </count>
144                   <iterate>
145                      <adapt
146                            type="org.eclipse.core.resources.IProject">
147                         <test
148                               property="org.eclipse.core.resources.projectNature"
149                               value="net.mograsim.plugin.mograsimNature">
150                         </test>
151                      </adapt>
152                   </iterate>
153                </with>
154             </visibleWhen>
155          </command>
156          <command
157                commandId="net.mograsim.plugin.addRemoveMograsimNature"
158                label="%command.label.0"
159                style="push">
160             <visibleWhen
161                   checkEnabled="false">
162                <with
163                      variable="selection">
164                   <count
165                         value="1">
166                   </count>
167                   <iterate>
168                      <adapt
169                            type="org.eclipse.core.resources.IProject">
170                         <not>
171                            <test
172                                  property="org.eclipse.core.resources.projectNature"
173                                  value="net.mograsim.plugin.mograsimNature">
174                            </test>
175                         </not>
176                      </adapt>
177                   </iterate>
178                </with>
179             </visibleWhen>
180          </command>
181       </menuContribution>
182    </extension>
183    <extension
184          id="xmlProblem"
185          name="%extension.name.1"
186          point="org.eclipse.core.resources.markers">
187       <super
188             type="org.eclipse.core.resources.problemmarker">
189       </super>
190       <persistent
191             value="true">
192       </persistent>
193    </extension>
194    <extension
195          point="org.eclipse.ui.decorators">
196       <decorator
197             adaptable="true"
198             icon="icons/mograsim/blue-orange/icon_blue-orange_7x8.png"
199             id="net.mograsim.plugin.decorator"
200             label="%decorator.label"
201             lightweight="true"
202             location="BOTTOM_RIGHT"
203             state="true">
204          <enablement>
205             <and>
206                <objectClass
207                      name="org.eclipse.core.resources.IResource">
208                </objectClass>
209                <or>
210                   <objectClass
211                         name="org.eclipse.core.resources.IProject">
212                   </objectClass>
213                   <objectClass
214                         name="org.eclipse.core.resources.IFile">
215                   </objectClass>
216                </or>
217             </and>
218          </enablement>
219       </decorator>
220    </extension>
221    <extension
222          point="org.eclipse.ui.themes">
223       <themeElementCategory
224             class="net.mograsim.plugin.SimulationPreview"
225             id="net.mograsim.plugin.mograsim"
226             label="%themeElementCategory.label">
227       </themeElementCategory>
228       <themeElementCategory
229             class="net.mograsim.plugin.SimulationPreview"
230             id="net.mograsim.logic.model"
231             label="%themeElementCategory.label.0"
232             parentId="net.mograsim.plugin.mograsim">
233       </themeElementCategory>
234       <colorDefinition
235             categoryId="net.mograsim.logic.model"
236             id="net.mograsim.logic.model.color.background"
237             isEditable="true"
238             label="%colorDefinition.label"
239             value="COLOR_WHITE">
240          <description>
241             %colorDefinition.description
242          </description>
243       </colorDefinition>
244       <colorDefinition
245             categoryId="net.mograsim.logic.model"
246             id="net.mograsim.logic.model.color.foreground"
247             isEditable="true"
248             label="%colorDefinition.label.0"
249             value="COLOR_BLACK">
250       </colorDefinition>
251       <colorDefinition
252             categoryId="net.mograsim.logic.model"
253             id="net.mograsim.logic.model.color.text"
254             label="%colorDefinition.label.10"
255             value="COLOR_BLACK">
256       </colorDefinition>
257       <colorDefinition
258             categoryId="net.mograsim.logic.model"
259             id="net.mograsim.logic.model.color.bit.one"
260             isEditable="true"
261             label="%colorDefinition.label.5"
262             value="COLOR_GREEN">
263       </colorDefinition>
264       <colorDefinition
265             categoryId="net.mograsim.logic.model"
266             id="net.mograsim.logic.model.color.bit.u"
267             isEditable="true"
268             label="%colorDefinition.label.6"
269             value="COLOR_CYAN">
270       </colorDefinition>
271       <colorDefinition
272             categoryId="net.mograsim.logic.model"
273             id="net.mograsim.logic.model.color.bit.x"
274             isEditable="true"
275             label="%colorDefinition.label.7"
276             value="COLOR_RED">
277       </colorDefinition>
278       <colorDefinition
279             categoryId="net.mograsim.logic.model"
280             id="net.mograsim.logic.model.color.bit.z"
281             isEditable="true"
282             label="%colorDefinition.label.8"
283             value="COLOR_YELLOW">
284       </colorDefinition>
285       <colorDefinition
286             categoryId="net.mograsim.logic.model"
287             id="net.mograsim.logic.model.color.bit.zero"
288             isEditable="true"
289             label="%colorDefinition.label.9"
290             value="COLOR_GRAY">
291       </colorDefinition>
292       <colorDefinition
293             categoryId="net.mograsim.plugin.mograsim"
294             id="net.mograsim.plugin.asm_comment_color"
295             isEditable="true"
296             label="%colorDefinition.label.1"
297             value="COLOR_GREEN">
298       </colorDefinition>
299       <colorDefinition
300             categoryId="net.mograsim.plugin.mograsim"
301             id="net.mograsim.plugin.asm_label_color"
302             isEditable="true"
303             label="%colorDefinition.label.2"
304             value="COLOR_BLUE">
305       </colorDefinition>
306       <colorDefinition
307             categoryId="net.mograsim.plugin.mograsim"
308             id="net.mograsim.plugin.asm_operation_color"
309             isEditable="true"
310             label="%colorDefinition.label.3"
311             value="COLOR_RED">
312       </colorDefinition>
313       <colorDefinition
314             categoryId="net.mograsim.plugin.mograsim"
315             id="net.mograsim.plugin.asm_number_color"
316             isEditable="true"
317             label="%colorDefinition.label.4"
318             value="COLOR_MAGENTA">
319       </colorDefinition>
320       <fontDefinition
321             categoryId="net.mograsim.plugin.mograsim"
322             id="net.mograsim.plugin.asm_operation_font"
323             isEditable="true"
324             label="%fontDefinition.label">
325       </fontDefinition>
326    </extension>
327
328 </plugin>