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