Package org.eclipse.ui

Examples of org.eclipse.ui.IFolderLayout


  }

  protected void createFolders(IPageLayout layout) {
    final String editorArea = layout.getEditorArea();

    IFolderLayout rightFolder = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.75,
            editorArea);
    rightFolder.addView(IPageLayout.ID_OUTLINE);
    rightFolder.addView(TYPE_BROWSER);

    // Folder
    IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, (float) 0.2, editorArea); //$NON-NLS-1$   

    folder.addView(SCRIPT_EXPLORER);
    folder.addPlaceholder(IPageLayout.ID_BOOKMARKS);

    // Output folder
    IFolderLayout outputFolder = layout.createFolder(
            "bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$

    outputFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
    outputFolder.addView(IPageLayout.ID_TASK_LIST);
    outputFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    outputFolder.addView(SELECTION_VIEW);
    outputFolder.addView(TEXTRULER);
    outputFolder.addView(ANNOTATION_TESTING);
    outputFolder.addView(QUERY);

    outputFolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
    outputFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    outputFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
  }
View Full Code Here


   * @generated
   */
  public void createInitialLayout(IPageLayout layout) {
    layout.setEditorAreaVisible(true);
    layout.addPerspectiveShortcut(es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.application.DiagramEditorWorkbenchAdvisor.PERSPECTIVE_ID);
    IFolderLayout right = layout.createFolder(
        "right", IPageLayout.RIGHT, 0.6f, layout.getEditorArea()); //$NON-NLS-1$
    right.addView(IPageLayout.ID_OUTLINE);
    IFolderLayout bottomRight = layout.createFolder(
        "bottomRight", IPageLayout.BOTTOM, 0.6f, "right"); //$NON-NLS-1$   //$NON-NLS-2$
    bottomRight.addView(IPageLayout.ID_PROP_SHEET);
  }
View Full Code Here

   * @generated
   */
  public void createInitialLayout(IPageLayout layout) {
    layout.setEditorAreaVisible(true);
    layout.addPerspectiveShortcut(es.upm.dit.gsi.eclipse.jadex.diagram.eclipseJadex.diagram.application.DiagramEditorWorkbenchAdvisor.PERSPECTIVE_ID);
    IFolderLayout right = layout.createFolder(
        "right", IPageLayout.RIGHT, 0.6f, layout.getEditorArea()); //$NON-NLS-1$
    right.addView(IPageLayout.ID_OUTLINE);
    IFolderLayout bottomRight = layout.createFolder(
        "bottomRight", IPageLayout.BOTTOM, 0.6f, "right"); //$NON-NLS-1$   //$NON-NLS-2$
    bottomRight.addView(IPageLayout.ID_PROP_SHEET);
  }
View Full Code Here

  private final static String WEBSITE_VIEW = "com.subgraph.vega.views.website";
  public final static String HTTP_VIEW_SECONDARY_ID = "scanner"; /** Secondary ID for the scanner's com.subgraph.vega.views.http */

  @Override
  public void createInitialLayout(IPageLayout layout) {
    final IFolderLayout scanFolder = layout.createFolder(SCAN_INFO_FOLDER, IPageLayout.TOP, 0, layout.getEditorArea());
    scanFolder.addView(ScanInfoView.ID);
    layout.getViewLayout(ScanInfoView.ID).setCloseable(false);
    scanFolder.addPlaceholder("*:*");

    layout.addStandaloneView(WEBSITE_VIEW, true, IPageLayout.LEFT, 0.25f, ScanInfoView.ID);
    layout.getViewLayout(WEBSITE_VIEW).setCloseable(false);
    layout.addStandaloneView(ScanAlertView.ID, true, IPageLayout.BOTTOM, 0.40f, WEBSITE_VIEW);
    layout.getViewLayout(ScanAlertView.ID).setCloseable(false);

    final IFolderLayout mgmtFolder = layout.createFolder(MGMT_FOLDER, IPageLayout.BOTTOM, 0.75f, SCAN_INFO_FOLDER);
    mgmtFolder.addView("com.subgraph.vega.views.identity.identities");
   
    layout.setEditorAreaVisible(false);
  }
View Full Code Here

  private final static String ALERT_VIEW = "com.subgraph.vega.views.alert";


  @Override
  public void createInitialLayout(IPageLayout layout) {
    IFolderLayout proxyFolder = layout.createFolder(PROXY_FOLDER, IPageLayout.TOP, 0f, layout.getEditorArea());
    proxyFolder.addView(HttpRequestView.ID_PROXY);
    layout.getViewLayout(HttpRequestView.ID_PROXY).setCloseable(false);
    proxyFolder.addView(InterceptView.ID);
    layout.getViewLayout(InterceptView.ID).setCloseable(false);
    proxyFolder.addView(StatusView.ID);
    layout.getViewLayout(StatusView.ID).setCloseable(false);
    layout.addView(WEBSITE_VIEW, IPageLayout.LEFT, 0.25f, PROXY_FOLDER);
    layout.getViewLayout(WEBSITE_VIEW).setCloseable(false);
   
    layout.addFastView(ALERT_VIEW, 0.25f);
View Full Code Here

  private static final String JUNIT_VIEW = "org.eclipse.jdt.junit.ResultView";//$NON-NLS-1$
 
  public void createInitialLayout(IPageLayout layout) {
     String editorArea = layout.getEditorArea();
   
    IFolderLayout packageExplorerFolder = layout.createFolder("packageExplorerFolder", IPageLayout.LEFT, (float)0.25, editorArea); //$NON-NLS-1$
    packageExplorerFolder.addView(PACKAGE_EXPLORER_VIEW);
   
   
    IFolderLayout outlineFolder = layout.createFolder("searchFolder", IPageLayout.BOTTOM, (float)0.50, "packageExplorerFolder"); //$NON-NLS-1$
    outlineFolder.addView(NAKED_OBJECT_OUTLINE_VIEW);
        try {
            outlineFolder.addView("org.eclipse.jdt.astview.views.ASTView");
            } catch(Exception ex) {
                // ignore any problems.
        }

       
    IFolderLayout problemFolder= layout.createFolder("problemFolder", IPageLayout.BOTTOM, (float)0.60, editorArea); //$NON-NLS-1$
    problemFolder.addView(PROBLEM_VIEW);


    IFolderLayout nakedObjectsFolder = layout.createFolder("annotationViewsFolder", IPageLayout.TOP, (float)0.50, "problemFolder"); //$NON-NLS-1$
    nakedObjectsFolder.addView(NAKED_OBJECT_SPEC_VIEW);
    nakedObjectsFolder.addView(NAKED_OBJECT_PROPERTIES_VIEW);
        nakedObjectsFolder.addView(NAKED_OBJECT_STRING_PROPERTIES_VIEW);
    nakedObjectsFolder.addView(NAKED_OBJECT_COLLECTIONS_VIEW);
    nakedObjectsFolder.addView(NAKED_OBJECT_ACTIONS_VIEW);


    IFolderLayout consoleFolder= layout.createFolder("consoleFolder", IPageLayout.RIGHT, (float)0.45, "problemFolder"); //$NON-NLS-1$
        consoleFolder.addView(CONSOLE_VIEW);
       
        IFolderLayout debugFolder = layout.createFolder("debugFolder", IPageLayout.RIGHT, (float)0.70, "consoleFolder"); //$NON-NLS-1$
        debugFolder.addView(DEBUG_VIEW);


    IFolderLayout javadocFolder= layout.createFolder("javadocFolder", IPageLayout.RIGHT, (float)0.75, editorArea); //$NON-NLS-1$
    javadocFolder.addView(JAVADOC_VIEW);
   
   
    layout.addActionSet(DEBUG_LAUNCH_ACTION_SET);
    layout.addActionSet(JAVA_ACTION_SET);
    layout.addActionSet(JAVA_ELEMENT_CREATION_ACTION_SET);
View Full Code Here

        layout.addActionSet("org.eclipse.debug.ui.launchActionSet");
        layout.addActionSet("org.eclipse.debug.ui.profileActionSet");

        layout.addNewWizardShortcut("org.apache.karaf.eik.ui.karafPlatformProject");

        final IFolderLayout leftFolder =
            layout.createFolder(
                    LEFT_FOLDER,
                    IPageLayout.LEFT,
                    0.20f,
                    layout.getEditorArea());

        leftFolder.addView("org.eclipse.ui.navigator.ProjectExplorer");

        final IFolderLayout bottomFolder =
            layout.createFolder(
                    BOTTOM_FOLDER,
                    IPageLayout.BOTTOM,
                    0.75f,
                    layout.getEditorArea());

        bottomFolder.addView(BundlesView.VIEW_ID);
        bottomFolder.addView(ServicesView.VIEW_ID);
        bottomFolder.addView("org.eclipse.ui.console.ConsoleView");
    }
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.addView( SearchLogsView.getId() );
        logFolder.addPlaceholder( "*" );

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

    layout.addView(ID_FABRIC_EXPORER, IPageLayout.LEFT, 0.30f, editorArea);
    layout.addView(IPageLayout.ID_PROP_SHEET, IPageLayout.BOTTOM, 0.50f, editorArea);

    //layout.addView(ID_LOGS_VIEW, IPageLayout.TOP, 0.50f, IPageLayout.ID_PROP_SHEET);

    IFolderLayout messages = layout.createFolder("LogsView", IPageLayout.TOP, 0.50f, IPageLayout.ID_PROP_SHEET);
    messages.addView(ID_LOGS_VIEW);
    messages.addView(ID_MESSAGE_TABLE);


    layout.addView(ID_TERMINAL_VIEW, IPageLayout.RIGHT, 0.40f, editorArea);
    layout.addView(ID_DIAGRAM_VIEW, IPageLayout.RIGHT, 0.40f, editorArea);
  }
View Full Code Here

    layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT, 0.20f, editorArea);

    // bottom
    layout.addView(IPageLayout.ID_PROP_SHEET, IPageLayout.BOTTOM, 0.70f, editorArea);

    IFolderLayout messages = layout.createFolder("messages", IPageLayout.RIGHT, 0.50f, IPageLayout.ID_PROP_SHEET);
    if (existView(ID_MESSAGE_TABLE)) messages.addView(ID_MESSAGE_TABLE);
    if (existView(ID_SERVERS_VIEW)) messages.addView(ID_SERVERS_VIEW);
    messages.addView(ID_CONSOLE_VIEW);

    // right
    IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.25f, editorArea);
    if (existView(ID_JMX_EXPORER)) right.addView(ID_JMX_EXPORER);

    IFolderLayout views = layout.createFolder("views",  IPageLayout.LEFT, 0.60f, "right");
    if (existView(ID_DIAGRAM_VIEW)) views.addView(ID_DIAGRAM_VIEW);
    if (existView(ID_TERMINAL_VIEW)) views.addView(ID_TERMINAL_VIEW);
  }
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.