Added Mograsim perspective that contains all useful views directly
authorChristian Femers <femers@in.tum.de>
Sun, 6 Oct 2019 23:39:21 +0000 (01:39 +0200)
committerChristian Femers <femers@in.tum.de>
Sun, 6 Oct 2019 23:39:21 +0000 (01:39 +0200)
plugins/net.mograsim.plugin.core/plugin.xml
plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/perspectives/MograsimPerspective.java [new file with mode: 0644]

index 0eaf8d4..f317191 100644 (file)
           renderingIds="org.eclipse.debug.ui.rendering.raw_memory,org.eclipse.debug.ui.rendering.hexint,org.eclipse.debug.ui.rendering.signedint,org.eclipse.debug.ui.rendering.unsignedint,org.eclipse.debug.ui.rendering.ascii">
     </renderingBindings>
  </extension>
+ <extension
+       point="org.eclipse.ui.perspectives">
+    <perspective
+          class="net.mograsim.plugin.perspectives.MograsimPerspective"
+          icon="icons/mograsim/blue-orange/icon_blue-orange_16.png"
+          id="net.mograsim.plugin.core.mograsimDefaultPerspective"
+          name="Mograsim">
+    </perspective>
+ </extension>
+ <extension
+       point="org.eclipse.ui.perspectiveExtensions">
+    <perspectiveExtension
+          targetID="net.mograsim.plugin.core.mograsimDefaultPerspective">
+       <newWizardShortcut
+             id="net.mograsim.plugin.wizards.newWizards.NewWizardMEM">
+       </newWizardShortcut>
+       <newWizardShortcut
+             id="net.mograsim.plugin.wizards.newWizards.NewWizardMPM">
+       </newWizardShortcut>
+       <viewShortcut
+             id="net.mograsim.plugin.simulationview">
+       </viewShortcut>
+       <viewShortcut
+             id="org.eclipse.debug.ui.MemoryView">
+       </viewShortcut>
+       <viewShortcut
+             id="org.eclipse.debug.ui.DebugView">
+       </viewShortcut>
+       <viewShortcut
+             id="org.eclipse.debug.ui.RegisterView">
+       </viewShortcut>
+       <viewShortcut
+             id="org.eclipse.ui.navigator.ProjectExplorer">
+       </viewShortcut>
+       <perspectiveShortcut
+             id="net.mograsim.plugin.core.mograsimDefaultPerspective">
+       </perspectiveShortcut>
+       <perspectiveShortcut
+             id="org.eclipse.ui.resourcePerspective">
+       </perspectiveShortcut>
+       <view
+             id="org.eclipse.ui.navigator.ProjectExplorer"
+             minimized="false"
+             ratio="0.18"
+             relationship="left"
+             relative="org.eclipse.ui.editorss">
+       </view>
+       <view
+             id="org.eclipse.debug.ui.DebugView"
+             minimized="false"
+             relationship="stack"
+             relative="org.eclipse.ui.navigator.ProjectExplorer">
+       </view>
+       <view
+             id="org.eclipse.debug.ui.MemoryView"
+             minimized="false"
+             ratio="0.82"
+             relationship="right"
+             relative="org.eclipse.ui.editorss">
+       </view>
+       <view
+             id="org.eclipse.debug.ui.RegisterView"
+             minimized="false"
+             ratio="0.5"
+             relationship="top"
+             relative="org.eclipse.debug.ui.MemoryView">
+       </view>
+       <view
+             id="net.mograsim.plugin.simulationview"
+             minimized="false"
+             ratio="0.35"
+             relationship="bottom"
+             relative="org.eclipse.ui.editorss"
+             visible="true">
+       </view>
+       <actionSet
+             id="org.eclipse.debug.ui.debugActionSet">
+       </actionSet>
+       <actionSet
+             id="org.eclipse.debug.ui.launchActionSet">
+       </actionSet>
+    </perspectiveExtension>
+    <perspectiveExtension
+          targetID="org.eclipse.ui.resourcePerspective">
+       <perspectiveShortcut
+             id="net.mograsim.plugin.core.mograsimDefaultPerspective">
+       </perspectiveShortcut>
+    </perspectiveExtension>
+    <perspectiveExtension
+          targetID="org.eclipse.jdt.ui.JavaPerspective">
+       <perspectiveShortcut
+             id="net.mograsim.plugin.core.mograsimDefaultPerspective">
+       </perspectiveShortcut>
+    </perspectiveExtension>
+ </extension>
 </plugin>
diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/perspectives/MograsimPerspective.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/perspectives/MograsimPerspective.java
new file mode 100644 (file)
index 0000000..1dfef2f
--- /dev/null
@@ -0,0 +1,13 @@
+package net.mograsim.plugin.perspectives;
+
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+public class MograsimPerspective implements IPerspectiveFactory
+{
+       @Override
+       public void createInitialLayout(IPageLayout factory)
+       {
+               // everything is done in the plugin.xml
+       }
+}