Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.systemtap.ui.graphing/src/org/eclipse/linuxtools/systemtap/ui/graphing/GraphingPerspective.java')
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.graphing/src/org/eclipse/linuxtools/systemtap/ui/graphing/GraphingPerspective.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.graphing/src/org/eclipse/linuxtools/systemtap/ui/graphing/GraphingPerspective.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.graphing/src/org/eclipse/linuxtools/systemtap/ui/graphing/GraphingPerspective.java
new file mode 100644
index 0000000000..f4faa4bbc8
--- /dev/null
+++ b/systemtap/org.eclipse.linuxtools.systemtap.ui.graphing/src/org/eclipse/linuxtools/systemtap/ui/graphing/GraphingPerspective.java
@@ -0,0 +1,48 @@
+/*******************************************************************************
+ * Copyright (c) 2006 IBM Corporation.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - Jeff Briggs, Henry Hughes, Ryan Morse
+ *******************************************************************************/
+
+package org.eclipse.linuxtools.systemtap.ui.graphing;
+
+import org.eclipse.linuxtools.systemtap.ui.graphing.views.GraphSelectorView;
+import org.eclipse.linuxtools.systemtap.ui.logging.LogManager;
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+
+
+/**
+ * The <code>GraphingPerspective</code> class defines the layout of the Graphing perspective
+ * in the application.
+ * @see org.eclipse.ui.IPerspectiveFactory
+ * @author Ryan Morse
+ */
+public class GraphingPerspective implements IPerspectiveFactory {
+ public static String ID = "org.eclipse.linuxtools.systemtap.ui.graphing.GraphingPerspective";
+
+ public void createInitialLayout(IPageLayout layout) {
+ LogManager.logDebug("Start createInitialLayout: layout-" + layout, this);
+ LogManager.logInfo("Initializing", this);
+ String editorArea = layout.getEditorArea();
+ layout.setEditorAreaVisible(false);
+
+ layout.addStandaloneView(GraphSelectorView.ID, false, IPageLayout.TOP, .75f, editorArea);
+
+ layout.getViewLayout(GraphSelectorView.ID).setCloseable(false);
+
+ //Add all perspectives to the MainMenu. Window->Show View
+ layout.addShowViewShortcut(GraphSelectorView.ID);
+
+ //Add a link to the perspective in the MainMenu. Window->Open Perspective
+ layout.addPerspectiveShortcut(ID);
+
+ LogManager.logDebug("End createInitialLayout:", this);
+ }
+}

Back to the top