Made simulation view / LogicUIPart to an Editor
[Mograsim.git] / plugins / net.mograsim.plugin.core / plugin.xml
index 38f64cb..965c260 100644 (file)
             name="%content-type.mpm.name"
             priority="high">
       </content-type>
+      <content-type
+            base-type="org.eclipse.core.runtime.text"
+            default-charset="UTF-8"
+            file-extensions="regs"
+            id="net.mograsim.plugin.regs"
+            name="Registers / Latches state"
+            priority="high">
+      </content-type>
    </extension>
    <extension
          point="org.eclipse.ui.menus">
             contentTypeId="net.mograsim.plugin.asm"
             editorId="org.eclipse.ui.genericeditor.GenericEditor">
       </editorContentTypeBinding>
-      <editorContentTypeBinding
-            contentTypeId="net.mograsim.plugin.mpm"
-            editorId="net.mograsim.plugin.tables.mi.InstructionView">
-      </editorContentTypeBinding>
       <editor
                name="%editor.name.0"
                icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
                class="net.mograsim.plugin.tables.mi.InstructionView"
                id="net.mograsim.plugin.tables.mi.InstructionView">
+               <contentTypeBinding contentTypeId="net.mograsim.plugin.mpm"/>
+      </editor>
+      <editor
+            class="net.mograsim.plugin.editors.SimulationViewEditor"
+            icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
+            id="net.mograsim.plugin.editors.simulationvieweditor"
+            name="Simulation View Editor">
+               <contentTypeBinding contentTypeId="net.mograsim.plugin.regs"/>
       </editor>
    </extension>
    <extension
             inject="true"
             name="%view.name">
       </view>
-      <view
-            allowMultiple="true"
-            category="net.mograsim.plugin"
-            class="net.mograsim.plugin.views.LogicUIPart"
-            icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
-            id="net.mograsim.plugin.core.view1"
-            inject="true"
-            name="%view.name.0"
-            restorable="true">
-      </view>
       <view
             category="net.mograsim.plugin"
                id="net.mograsim.plugin.tables.memory.MemoryView"
             name="%command.name">
       </command>
    </extension>
-
+       <extension
+               point="org.eclipse.ui.newWizards">
+               <category
+                       name="%wizards.newWizards.category"
+                       id="net.mograsim.plugin.wizards.newWizards.category">
+               </category>
+               <wizard
+                       id="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
+                       name="%wizards.newWizards.mpm.name"
+                       class="net.mograsim.plugin.wizards.newWizards.NewWizardMPM"
+                       category="net.mograsim.plugin.wizards.newWizards.category"
+                       icon="icons/mograsim/blue-orange/icon_blue-orange_16.png">
+                       <description>%wizards.newWizards.mpm.desc</description>
+                       <selection class="org.eclipse.core.resources.IResource"/>
+               </wizard>
+       </extension>
 </plugin>