Package org.eclipse.ui

Examples of org.eclipse.ui.IFolderLayout


    layout.addActionSet("org.eclipse.debug.ui.breakpointActionSet");
   
    layout.addShowInPart(IPageLayout.ID_RES_NAV);
   
    //view to the left of the editor
    IFolderLayout left = layout.createFolder(
      "left", IPageLayout.LEFT, (float)0.25, editorid
    );
    //standard resource nav (file / project lister)
    left.addView(IPageLayout.ID_RES_NAV);
    left.addView(SnipTreeView.ID_SNIPVIEWTREE);
    left.addView(VFSView.ID_FILEEXPLORER);
    // old file explorer we can keep for a bit but hide it
    // left.addView(FileExplorerView.ID_FILE_EXPLORER);
   
    //views to the bottom
    IFolderLayout bottom = layout.createFolder(
      "bottom", IPageLayout.BOTTOM, (float)0.75, editorid
    );
 
    bottom.addView(IPageLayout.ID_TASK_LIST);
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottom.addView(IPageLayout.ID_BOOKMARKS);
    bottom.addView(BrowserView.ID_BROWSER);
    //bottom.addView(FtpLogView.ID_FTP_LOG_VIEW); //Removed as we dont do anything with this view anymore
   
    //views to the right
    IFolderLayout right = layout.createFolder(
      "right", IPageLayout.RIGHT, (float)0.75, editorid
    );
    right.addView(IPageLayout.ID_OUTLINE);
    right.addView(CFCMethodsView.ID_CFCMETHODVIEW);
    right.addView(DictionaryView.ID_DICTIONARY);
   
    layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
    //views that should show up on the quick menu on show view
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
View Full Code Here


public void createInitialLayout( IPageLayout layout )
{
String editorArea = layout.getEditorArea();
layout.setEditorAreaVisible( false );

IFolderLayout bottomFolder  = layout.createFolder( "bottom", IPageLayout.BOTTOM, 0.65f, editorArea );
IFolderLayout leftFolder  = layout.createFolder( "left", IPageLayout.LEFT, 0.22f, editorArea );
IFolderLayout centerFolder  = layout.createFolder( "center", IPageLayout.LEFT, 0.68f, editorArea );
IFolderLayout rightFolder  = layout.createFolder( "right", IPageLayout.LEFT, 0.10f, editorArea );

IFolderLayout bottomLeftFolder  = layout.createFolder( "bottomLeft", IPageLayout.LEFT, 0.35f, "bottom" );
IFolderLayout bottomCenterFolder= layout.createFolder( "bottomCenter", IPageLayout.LEFT, 0.45f, "bottom" );

//IFolderLayout rightBottomFolder = layout.createFolder( "rightBottom", IPageLayout.BOTTOM, 0.75f, "right" );

leftFolder.addView( net.jumperz.app.MMonjaDB.eclipse.view.MDBTree.class.getName() );
centerFolder.addView( net.jumperz.app.MMonjaDB.eclipse.view.MDocumentList.class.getName() );
rightFolder.addView( net.jumperz.app.MMonjaDB.eclipse.view.MDocumentEditor.class.getName() );

bottomLeftFolder.addView( net.jumperz.app.MMonjaDB.eclipse.view.MActionView.class.getName() );

bottomCenterFolder.addView( net.jumperz.app.MMonjaDB.eclipse.view.MSavedActionsView .class.getName() );

bottomFolder.addView( net.jumperz.app.MMonjaDB.eclipse.view.MJavaScriptView .class.getName() );
bottomFolder.addView( IConsoleConstants.ID_CONSOLE_VIEW );

rightFolder.addView( net.jumperz.app.MMonjaDB.eclipse.view.MJsonView .class.getName() );
View Full Code Here

   * Creates the overall folder layout.
   */
  private void addViews() {
    final String editorArea = factory.getEditorArea();
   
    IFolderLayout topLeft = factory.createFolder("topLeft", IPageLayout.LEFT, 0.25f, editorArea);
    topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);

    IFolderLayout bottom = factory.createFolder("bottomRight", IPageLayout.BOTTOM, 0.75f, editorArea);
   
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    bottom.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
    bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    bottom.addPlaceholder(IPageLayout.ID_TASK_LIST);
    bottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
   
    IFolderLayout outlineFolder = factory.createFolder("right", IPageLayout.RIGHT, (float) 0.75, editorArea);
    outlineFolder.addView(IPageLayout.ID_OUTLINE);
  }
View Full Code Here

  public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();
    layout.setEditorAreaVisible(false);
   
    layout.addStandaloneView(NavigationView.ID,  false, IPageLayout.LEFT, 0.25f, editorArea);
    IFolderLayout folder = layout.createFolder("messages", IPageLayout.TOP, 0.5f, editorArea);
    folder.addPlaceholder(View.ID + ":*");
    folder.addView(View.ID);
   
    layout.getViewLayout(NavigationView.ID).setCloseable(false);
  }
 
View Full Code Here

  private void defineLayout(IPageLayout layout) {
    // Editors are placed for free.
    String editorArea = layout.getEditorArea();

    // Top left.
    IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.26, editorArea);//$NON-NLS-1$
    topLeft.addView(ActivitiNavigator.VIEW_ID);
    topLeft.addView("org.eclipse.jdt.ui.PackageExplorer");
    topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);
    topLeft.addPlaceholder(IPageLayout.ID_BOOKMARKS);

    // Bottom left.
    IFolderLayout bottomLeft = layout.createFolder("bottomLeft", IPageLayout.BOTTOM, (float) 0.50,//$NON-NLS-1$
            "topLeft");//$NON-NLS-1$
    bottomLeft.addView(IPageLayout.ID_OUTLINE);
    bottomLeft.addView("org.eclipse.graphiti.ui.internal.editor.thumbnailview");

    // Bottom right.
    IFolderLayout bottomRight = layout.createFolder("bottomRight", IPageLayout.BOTTOM, (float) 0.66,//$NON-NLS-1$
            editorArea);
    bottomRight.addView(IPageLayout.ID_PROP_SHEET);
    bottomRight.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottomRight.addView("org.eclipse.ant.ui.views.AntView");
    bottomRight.addView("org.eclipse.pde.runtime.LogView");
  }
View Full Code Here

        // Editor area
        String editorArea = layout.getEditorArea();

        // Browser folder
        IFolderLayout browserFolder = layout.createFolder( "browserFolder", IPageLayout.LEFT, ( float ) 0.25,
            editorArea );
        browserFolder.addView( BrowserView.getId() );

        // Connection folder
        IFolderLayout connectionFolder = layout.createFolder( "connectionFolder", IPageLayout.BOTTOM, ( float ) 0.75,
            "browserFolder" );
        connectionFolder.addView( ConnectionView.getId() );

        // Outline folder
        IFolderLayout outlineFolder = layout.createFolder( "outlineFolder", IPageLayout.RIGHT, ( float ) 0.75,
            editorArea );
        outlineFolder.addView( IPageLayout.ID_OUTLINE );

        // Progress folder
        IFolderLayout progessFolder = layout.createFolder( "progressFolder", IPageLayout.BOTTOM, ( float ) 0.75,
            "outlineFolder" );
        progessFolder.addView( "org.eclipse.ui.views.ProgressView" );

        // Log folder
        IFolderLayout logFolder = layout.createFolder( "logFolder", IPageLayout.BOTTOM, ( float ) 0.75, editorArea );
        logFolder.addView( ModificationLogsView.getId() );
        logFolder.addPlaceholder( "*" );

        // non-closable?
        boolean isIDE = BrowserUIPlugin.isIDEEnvironment();
        if ( !isIDE )
        {
View Full Code Here

        // Editor area
        String editorArea = layout.getEditorArea();

        // Browser folder
        IFolderLayout browserFolder = layout.createFolder( "browserFolder", IPageLayout.LEFT, ( float ) 0.25,
            editorArea );
        browserFolder.addView( BrowserView.getId() );

        // Connection folder
        IFolderLayout connectionFolder = layout.createFolder( "connectionFolder", IPageLayout.BOTTOM, ( float ) 0.75,
            "browserFolder" );
        connectionFolder.addView( ConnectionView.getId() );

        // Outline folder
        IFolderLayout outlineFolder = layout.createFolder( "outlineFolder", IPageLayout.RIGHT, ( float ) 0.75,
            editorArea );
        outlineFolder.addView( IPageLayout.ID_OUTLINE );

        // Progress folder
        IFolderLayout progessFolder = layout.createFolder( "progressFolder", IPageLayout.BOTTOM, ( float ) 0.75,
            "outlineFolder" );
        progessFolder.addView( "org.eclipse.ui.views.ProgressView" );

        // Log folder
        IFolderLayout logFolder = layout.createFolder( "logFolder", IPageLayout.BOTTOM, ( float ) 0.75, editorArea );
        logFolder.addView( ModificationLogsView.getId() );
        logFolder.addPlaceholder( "*" );

        // non-closable?
        boolean isIDE = BrowserUIPlugin.isIDEEnvironment();
        if ( !isIDE )
        {
View Full Code Here

    {
        String editorArea = layout.getEditorArea();
        // do not show an editor (for now), take full space for views only
        layout.setEditorAreaVisible( false );
        // neo graph view
        IFolderLayout graph = layout.createFolder( GRAPH_AREA, IPageLayout.BOTTOM, 0.95f, editorArea );
        graph.addView( NeoGraphViewPart.ID );
        graph.addView( SqlEditorView.ID );
        layout.getViewLayout( NeoGraphViewPart.ID ).setCloseable( false );
        // properties view
        IFolderLayout props = layout.createFolder( PROPERTIES_AREA, IPageLayout.BOTTOM, 0.75f, GRAPH_AREA );
        props.addView( IPageLayout.ID_PROP_SHEET );
        // relationship types view
        IFolderLayout types = layout.createFolder( "typesArea", IPageLayout.RIGHT, 0.55f, PROPERTIES_AREA );
        types.addView( RelationshipTypeView.ID );

        // // Connection view
        IFolderLayout connection = layout.createFolder( "connectionsArea", IPageLayout.LEFT, 0.20f, GRAPH_AREA );
        connection.addView( ConnectionsView.ID );

        // view shortcuts
        layout.addShowViewShortcut( NeoGraphViewPart.ID );
        layout.addShowViewShortcut( IPageLayout.ID_PROP_SHEET );
        layout.addShowViewShortcut( RelationshipTypeView.ID );
View Full Code Here

    String editorArea = layout.getEditorArea();
    layout.setEditorAreaVisible(true);
    layout.addStandaloneView(MainView.ID,  false, IPageLayout.LEFT, 0.25f, editorArea);
   
//    layout.addStandaloneView(NavigationView.ID,  false, IPageLayout.LEFT, 0.25f, editorArea);
    IFolderLayout folder = layout.createFolder("messages", IPageLayout.TOP, 0.5f, editorArea);
    folder.addPlaceholder(View.ID + ":*");
    layout.addFastView(ContactsEditor.ID);
//    folder.addView(MainView.ID);
   
    layout.getViewLayout(NavigationView.ID).setCloseable(false);
  }
 
View Full Code Here

public class StsPerspective implements IPerspectiveFactory {

  public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, (float) 0.25, editorArea); //$NON-NLS-1$
    folder.addView(JavaUI.ID_PACKAGES);
    folder.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);
    folder.addPlaceholder("org.eclipse.ui.views.ResourceNavigator");
    folder.addPlaceholder("org.eclipse.ui.navigator.ProjectExplorer");
    layout.addFastView("org.eclipse.jdt.junit.ResultView", (float) 0.25);
    layout.addFastView("org.springframework.ide.eclipse.aop.ui.navigator.aopReferenceModelNavigator", (float) 0.25);
    layout.addFastView("org.eclipse.contribution.xref.ui.views.XReferenceView", (float) 0.25);

    IFolderLayout serverFolder = layout.createFolder("server", IPageLayout.BOTTOM, (float) 0.80, "left");
    serverFolder.addView("org.eclipse.wst.server.ui.ServersView");

//    IFolderLayout tasklistFolder = layout.createFolder("topright", IPageLayout.RIGHT, (float) 0.75, editorArea); //$NON-NLS-1$
//    tasklistFolder.addView("org.eclipse.mylyn.tasks.ui.views.tasks");
    IFolderLayout springFolder = layout.createFolder("topright", IPageLayout.RIGHT, (float) 0.75, editorArea);
    springFolder.addView("org.springframework.ide.eclipse.ui.navigator.springExplorer");

    IFolderLayout outlineFolder = layout.createFolder("middleright", IPageLayout.TOP, (float) 0.50, "topright"); //$NON-NLS-1$
    outlineFolder.addView(IPageLayout.ID_OUTLINE);
    outlineFolder.addPlaceholder(TemplatesView.ID);

    IFolderLayout outputfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.80, editorArea); //$NON-NLS-1$
    outputfolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    outputfolder.addView("org.eclipse.ui.views.AllMarkersView");
    outputfolder.addView(IProgressConstants.PROGRESS_VIEW_ID);
    outputfolder.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW);
    outputfolder.addPlaceholder(IPageLayout.ID_TASK_LIST);
    outputfolder.addPlaceholder(JavaUI.ID_JAVADOC_VIEW);
    outputfolder.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
    outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
    outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    outputfolder.addPlaceholder("com.springsource.sts.ide.metadata.ui.RequestMappingView");
    outputfolder.addPlaceholder("com.springsource.sts.roo.ui.rooShellView");
    outputfolder.addPlaceholder("*");

    layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
    layout.addActionSet(JavaUI.ID_ACTION_SET);
    layout.addActionSet(JavaUI.ID_ELEMENT_CREATION_ACTION_SET);
    layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
 
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IFolderLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.