Now using preference system in plugin.core
[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="Simulation View"
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.ui"
231             label="Simulation"
232             parentId="net.mograsim.plugin.mograsim">
233       </themeElementCategory>
234       <colorDefinition
235             categoryId="net.mograsim.logic.ui"
236             id="net.mograsim.plugin.sim_backgound"
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.ui"
246             id="net.mograsim.plugin.sim_text_color"
247             isEditable="true"
248             label="%colorDefinition.label.0"
249             value="COLOR_BLACK">
250       </colorDefinition>
251       <colorDefinition
252             categoryId="net.mograsim.logic.ui"
253             id="net.mograsim.logic.ui.color.bit.one"
254             isEditable="true"
255             label="Simulation Farbe 1"
256             value="COLOR_GREEN">
257       </colorDefinition>
258       <colorDefinition
259             categoryId="net.mograsim.logic.ui"
260             id="net.mograsim.logic.ui.color.bit.u"
261             isEditable="true"
262             label="Simulation Farbe U"
263             value="COLOR_CYAN">
264       </colorDefinition>
265       <colorDefinition
266             categoryId="net.mograsim.logic.ui"
267             id="net.mograsim.logic.ui.color.bit.x"
268             isEditable="true"
269             label="Simulation Farbe X"
270             value="COLOR_RED">
271       </colorDefinition>
272       <colorDefinition
273             categoryId="net.mograsim.logic.ui"
274             id="net.mograsim.logic.ui.color.bit.z"
275             isEditable="true"
276             label="Simulation Farbe Z"
277             value="COLOR_YELLOW">
278       </colorDefinition>
279       <colorDefinition
280             categoryId="net.mograsim.logic.ui"
281             id="net.mograsim.logic.ui.color.bit.zero"
282             isEditable="true"
283             label="Simulation Farbe 0"
284             value="COLOR_GRAY">
285       </colorDefinition>
286       <colorDefinition
287             categoryId="net.mograsim.plugin.mograsim"
288             id="net.mograsim.plugin.asm_comment_color"
289             isEditable="true"
290             label="%colorDefinition.label.1"
291             value="COLOR_GREEN">
292       </colorDefinition>
293       <colorDefinition
294             categoryId="net.mograsim.plugin.mograsim"
295             id="net.mograsim.plugin.asm_label_color"
296             isEditable="true"
297             label="%colorDefinition.label.2"
298             value="COLOR_BLUE">
299       </colorDefinition>
300       <colorDefinition
301             categoryId="net.mograsim.plugin.mograsim"
302             id="net.mograsim.plugin.asm_operation_color"
303             isEditable="true"
304             label="%colorDefinition.label.3"
305             value="COLOR_RED">
306       </colorDefinition>
307       <colorDefinition
308             categoryId="net.mograsim.plugin.mograsim"
309             id="net.mograsim.plugin.asm_number_color"
310             isEditable="true"
311             label="%colorDefinition.label.4"
312             value="COLOR_MAGENTA">
313       </colorDefinition>
314       <fontDefinition
315             categoryId="net.mograsim.plugin.mograsim"
316             id="net.mograsim.plugin.asm_operation_font"
317             isEditable="true"
318             label="%fontDefinition.label">
319       </fontDefinition>
320    </extension>
321
322 </plugin>