ComponentDeveloperPerspectiveFactory.java
Go to the documentation of this file.
00001 package org.ros.model.ros_package.diagram;
00002 
00003 import org.eclipse.ui.IFolderLayout;
00004 import org.eclipse.ui.IPageLayout;
00005 import org.eclipse.ui.IPerspectiveFactory;
00006 
00007 public class ComponentDeveloperPerspectiveFactory implements IPerspectiveFactory {
00008 
00009         
00010             public void createInitialLayout(IPageLayout layout) {
00011                 defineActions(layout);
00012                 defineLayout(layout);
00013              }
00014             
00015             public void defineActions(IPageLayout layout) {
00016                 // Add "new wizards".
00017                 layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder");
00018                 layout.addNewWizardShortcut("org.ros.model.ros_package.diagram.part.RosCreationWizardID");
00019 
00020                 // Add "show views".
00021                 layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
00022                 layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
00023                 layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
00024                 layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
00025             }
00026             public void defineLayout(IPageLayout layout) {
00027 
00028                 String editorArea = layout.getEditorArea();
00029         
00030                 layout.addView("org.eclipse.ui.navigator.ProjectExplorer", IPageLayout.LEFT, (float) 0.2, editorArea);
00031         
00032                 IFolderLayout bottom = layout.createFolder("topLeft", IPageLayout.BOTTOM, 0.75f,editorArea);
00033                 bottom.addView(IPageLayout.ID_PROP_SHEET);
00034                 bottom.addView("org.eclipse.ui.console.ConsoleView");
00035             
00036             
00037         }
00038 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends


bride_plugin_source
Author(s): Alexander Bubeck
autogenerated on Wed Aug 14 2013 10:06:09