Ejemplo n.º 1
0
  /**
   * Creates the initial layout for a page.
   *
   * <p>Implementors of this method may add additional views to a perspective. The perspective
   * already contains an editor folder identified by the result of <code>IPageLayout.getEditorArea()
   * </code>. Additional views should be added to the layout using this value as the initial point
   * of reference.
   *
   * @param layout the page layout
   */
  public void createInitialLayout(IPageLayout layout) {
    // Get the editor area.
    String editorArea = layout.getEditorArea();

    layout.addView(
        "net.refractions.udig.project.ui.projectExplorer",
        IPageLayout.LEFT,
        0.25f,
        editorArea); //$NON-NLS-1$
    // layout.addView( "net.refractions.udig.project.ui.layerManager", IPageLayout.BOTTOM, 0.25f,
    // //$NON-NLS-1$
    //        "net.refractions.udig.project.ui.projectExplorer" ); //$NON-NLS-1$

    IFolderLayout folder =
        layout.createFolder(
            "net.refractions.udig.mapPerspective.selection",
            IPageLayout.BOTTOM,
            0.25f, //$NON-NLS-1$
            "net.refractions.udig.project.ui.projectExplorer");
    folder.addView("net.refractions.udig.project.ui.layerManager");
    folder.addView("net.refractions.udig.ui.aoiView");

    layout.addView(
        "net.refractions.udig.catalog.ui.CatalogView",
        IPageLayout.BOTTOM,
        0.65f,
        editorArea); //$NON-NLS-1$
    layout.addActionSet("net.refractions.udig.helpMenuItems");
    layout.addActionSet("net.refractions.udig.ui.default");
    layout.addPerspectiveShortcut(StylePerspective.ID_PERSPECTIVE);
  }
  public void createInitialLayout(IPageLayout layout) {
    layout.addView(
        "au.com.langdale.cimtoole.views.ProjectModelView",
        IPageLayout.RIGHT,
        .33f,
        layout.getEditorArea());
    layout.addView(
        "org.eclipse.ui.navigator.ProjectExplorer", IPageLayout.LEFT, .0f, layout.getEditorArea());
    layout.addView(
        "org.eclipse.ui.views.PropertySheet",
        IPageLayout.BOTTOM,
        .66f,
        "org.eclipse.ui.navigator.ProjectExplorer");
    layout.addView(
        "au.com.langdale.cimtoole.views.Documentation",
        IPageLayout.BOTTOM,
        .66f,
        "au.com.langdale.cimtoole.views.ProjectModelView");

    layout.addShowViewShortcut("org.eclipse.ui.views.ProblemView");
    layout.addShowViewShortcut("org.eclipse.ui.views.PropertySheet");
    layout.addShowViewShortcut("au.com.langdale.cimtoole.views.Documentation");
    layout.addShowViewShortcut("org.eclipse.ui.views.ContentOutline");
    layout.addShowViewShortcut("au.com.langdale.cimtoole.views.ProjectModelView");
    layout.addShowViewShortcut("org.eclipse.ui.navigator.ProjectExplorer");

    layout.addPerspectiveShortcut("au.com.langdale.cimtoole.CIMToolPerspective");
    layout.setEditorAreaVisible(false);
  }
  /** Initialisiert die Perspektive und fügt die Views hinzu */
  public void createInitialLayout(IPageLayout layout) {
    layout.setFixed(true);
    layout.setEditorAreaVisible(false);

    // Einfügen der Suche
    layout.addView(FilterView.ID, IPageLayout.TOP | IPageLayout.LEFT, 0.2f, layout.getEditorArea());
    layout.getViewLayout(FilterView.ID).setCloseable(false);
    layout.getViewLayout(FilterView.ID).setMoveable(false);

    // Einfügen des Views für die Rechnungen
    layout.addView(InvoiceTable.ID, IPageLayout.BOTTOM, 0.5f, layout.getEditorArea());
    layout.getViewLayout(InvoiceTable.ID).setCloseable(false);
    layout.getViewLayout(InvoiceTable.ID).setMoveable(false);
  }
Ejemplo n.º 4
0
  private void addViews() {
    factory.addView(ResourceManagerView.VIEW_ID, IPageLayout.LEFT, 0.3f, factory.getEditorArea());

    IFolderLayout folder =
        factory.createFolder(
            "oic.simulator.serviceprovider.perspective.folder",
            IPageLayout.BOTTOM,
            0.65f,
            ResourceManagerView.VIEW_ID);
    folder.addView(MetaPropertiesView.VIEW_ID);
    folder.addView(ResourceObserverView.VIEW_ID);

    factory.addView(AttributeView.VIEW_ID, IPageLayout.LEFT, 0.7f, factory.getEditorArea());
    factory.addView(LogView.VIEW_ID, IPageLayout.BOTTOM, 0.65f, AttributeView.VIEW_ID);
    factory.addView(
        MultiResourceOrchestrationView.VIEW_ID, IPageLayout.RIGHT, 0.6f, AttributeView.VIEW_ID);
  }
Ejemplo n.º 5
0
  @Override
  public void createInitialLayout(IPageLayout layout) {
    // Get the editor area.
    String editorArea = layout.getEditorArea();

    String folderId = "iFFolder";
    IFolderLayout iFFolder =
        layout.createFolder(
            folderId, //$NON-NLS-1$
            IPageLayout.LEFT,
            0.5f,
            editorArea);
    iFFolder.addView(IFConfigurationView.ID);
    // iFFolder.addView(UMLConfigurationView.ID);
    layout.addStandaloneView(
        "fr.irit.ifclipse.views.NavigatorView",
        true /* show title */,
        IPageLayout.LEFT,
        1.0f,
        editorArea);

    layout.addStandaloneView(
        DiagnosticView.ID, true, IPageLayout.RIGHT, 0.30f, IFConfigurationView.ID);
    layout.addView(ScenarioView.ID, IPageLayout.RIGHT, 0.75f, editorArea);

    layout.addView(IFTransitionsView.ID, IPageLayout.BOTTOM, 0.54f, DiagnosticView.ID);

    IFolderLayout dynamicViewsFolder =
        layout.createFolder(
            "dynamicViewsFolder", //$NON-NLS-1$
            IPageLayout.BOTTOM,
            0.6f,
            folderId);
    dynamicViewsFolder.addPlaceholder(DynamicView.ID);

    IFolderLayout bottom =
        layout.createFolder(
            "bottom", //$NON-NLS-1$
            IPageLayout.BOTTOM,
            0.5f,
            IFTransitionsView.ID);
    bottom.addView(IPageLayout.ID_PROJECT_EXPLORER);
    bottom.addView(IPageLayout.ID_PROP_SHEET);
    bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    layout.setEditorAreaVisible(true);
  }
 public void createInitialLayout(IPageLayout layout) {
   String editorArea = layout.getEditorArea();
   layout.setEditorAreaVisible(false);
   layout.setFixed(false);
   layout.addPlaceholder(LeistungenView.ID, SWT.LEFT, 0.3f, editorArea);
   layout.addView(CodeDetailView.ID, SWT.RIGHT, 0.8f, editorArea);
   layout.addShowViewShortcut(CodeDetailView.ID);
 }
Ejemplo n.º 7
0
  /*
   * (non-Javadoc)
   *
   * @see
   * org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui
   * .IPageLayout)
   */
  @Override
  public void createInitialLayout(IPageLayout layout) {
    boolean showConsole = false;
    layout.setEditorAreaVisible(false);

    String editorArea = layout.getEditorArea();

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

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

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

    boolean showLogs = false;
    if (showLogs) {
      messages.addView(ID_LOGS_VIEW);
    }

    messages.addView(ID_SERVERS_VIEW);
    if (!showConsole) {
      messages.addView(ID_CONSOLE_VIEW);
    }

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

    IFolderLayout views = layout.createFolder("views", IPageLayout.LEFT, 0.60f, "right");
    views.addView(ID_DIAGRAM_VIEW);
    views.addView(ID_TERMINAL_VIEW);
  }
  /*
   * Specifies what views are included in this perspective and their layout.
   */
  private void defineLayout(IPageLayout layout) {
    IFolderLayout leftFolder =
        layout.createFolder("leftFolder", IPageLayout.LEFT, 0.20f, layout.getEditorArea());

    leftFolder.addView(UIConstants.NAVIGATOR_VIEW_ID);

    IFolderLayout bottomFolder =
        layout.createFolder("bottomFolder", IPageLayout.BOTTOM, 0.60f, layout.getEditorArea());
    bottomFolder.addView(PagePreview.VIEW_ID);
    bottomFolder.addView("org.eclipse.pde.runtime.LogView");

    layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.80f, layout.getEditorArea());
  }
  private void createHorizontalLayout(IPageLayout layout) {
    String relativePartId = IPageLayout.ID_EDITOR_AREA;
    int relativePos = IPageLayout.TOP;

    if (shouldShowProjectsView()) {
      layout.addView(
          JavaUI.ID_PROJECTS_VIEW, IPageLayout.TOP, (float) 0.25, IPageLayout.ID_EDITOR_AREA);
      relativePartId = JavaUI.ID_PROJECTS_VIEW;
      relativePos = IPageLayout.RIGHT;
    }
    if (shouldShowPackagesView()) {
      layout.addView(JavaUI.ID_PACKAGES_VIEW, relativePos, (float) 0.25, relativePartId);
      relativePartId = JavaUI.ID_PACKAGES_VIEW;
      relativePos = IPageLayout.RIGHT;
    }
    layout.addView(JavaUI.ID_TYPES_VIEW, relativePos, (float) 0.33, relativePartId);
    layout.addView(JavaUI.ID_MEMBERS_VIEW, IPageLayout.RIGHT, (float) 0.50, JavaUI.ID_TYPES_VIEW);

    IPlaceholderFolderLayout placeHolderLeft =
        layout.createPlaceholderFolder(
            "left", IPageLayout.LEFT, (float) 0.25, IPageLayout.ID_EDITOR_AREA); // $NON-NLS-1$
    placeHolderLeft.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);
    placeHolderLeft.addPlaceholder(IPageLayout.ID_OUTLINE);
    placeHolderLeft.addPlaceholder(JavaUI.ID_PACKAGES);
    placeHolderLeft.addPlaceholder(JavaPlugin.ID_RES_NAV);
    placeHolderLeft.addPlaceholder(IPageLayout.ID_PROJECT_EXPLORER);

    IPlaceholderFolderLayout placeHolderBottom =
        layout.createPlaceholderFolder(
            "bottom", IPageLayout.BOTTOM, (float) 0.75, IPageLayout.ID_EDITOR_AREA); // $NON-NLS-1$
    placeHolderBottom.addPlaceholder(IPageLayout.ID_PROBLEM_VIEW);
    placeHolderBottom.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
    placeHolderBottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
    placeHolderBottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    placeHolderBottom.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
    placeHolderBottom.addPlaceholder(JavaUI.ID_JAVADOC_VIEW);
    placeHolderBottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
  }
 /** Creates the initial layout for a page. */
 public void createInitialLayout(IPageLayout layout) {
   String editorArea = layout.getEditorArea();
   addFastViews(layout);
   addViewShortcuts(layout);
   addPerspectiveShortcuts(layout);
   IFolderLayout folderLayout = layout.createFolder("folder", IPageLayout.LEFT, 0.22f, editorArea);
   folderLayout.addView("com.safi.eclipse.NavigatorView");
   layout.getViewLayout("com.safi.eclipse.NavigatorView").setCloseable(false);
   folderLayout.addView(PaletteView.ID);
   layout.getViewLayout(PaletteView.ID).setCloseable(false);
   // layout.addView("com.safi.workshop.sqlexplorer.plugin.views.DataPreviewView",
   // IPageLayout.BOTTOM,
   // 0.68f, editorArea);
   layout.addPlaceholder(
       "com.safi.workshop.sqlexplorer.plugin.views.DataPreviewView",
       IPageLayout.BOTTOM,
       0.68f,
       editorArea);
   IFolderLayout folderLayout_1 =
       layout.createFolder(
           "folder0",
           IPageLayout.LEFT,
           0.5f,
           "com.safi.workshop.sqlexplorer.plugin.views.DataPreviewView");
   layout
       .getViewLayout("com.safi.workshop.sqlexplorer.plugin.views.DataPreviewView")
       .setCloseable(false);
   folderLayout_1.addView("com.safi.workshop.sqlexplorer.plugin.views.SQLHistoryView");
   folderLayout_1.addView("com.safi.workshop.sqlexplorer.plugin.views.DatabaseStructureView");
   layout.addView(
       "com.safi.workshop.sqlexplorer.plugin.views.DatabaseDetailView",
       IPageLayout.LEFT,
       0.5f,
       "com.safi.workshop.sqlexplorer.plugin.views.DataPreviewView");
   layout
       .getViewLayout("com.safi.workshop.sqlexplorer.plugin.views.SQLHistoryView")
       .setCloseable(false);
   layout
       .getViewLayout("com.safi.workshop.sqlexplorer.plugin.views.DatabaseStructureView")
       .setCloseable(false);
   layout
       .getViewLayout("com.safi.workshop.sqlexplorer.plugin.views.DatabaseDetailView")
       .setCloseable(false);
 }
Ejemplo n.º 11
0
  public void createInitialLayout(IPageLayout layout) {
    layout.setEditorAreaVisible(false);
    //		layout.addStandaloneView("org.eclipse.equinox.security.sample.subjectView", false,
    // IPageLayout.TOP, IPageLayout.RATIO_MAX, IPageLayout.ID_EDITOR_AREA);
    layout.addView(
        "org.eclipse.equinox.security.views.storage",
        IPageLayout.LEFT,
        0.3f,
        IPageLayout.ID_EDITOR_AREA); // $NON-NLS-1$
    // layout.addView("org.eclipse.pde.runtime.RegistryBrowser", IPageLayout.RIGHT, 0.3f,
    // IPageLayout.ID_OUTLINE); //$NON-NLS-1$

    // layout.addView(UserCredentailView.ID, IPageLayout.RIGHT, 0.4f, IPageLayout.ID_EDITOR_AREA);

    // layout.addView("org.eclipse.ui.console.ConsoleView", IPageLayout.BOTTOM, 0.25f,
    // IPageLayout.ID_PROBLEM_VIEW);
    layout.addPerspectiveShortcut(
        "org.eclipse.equinox.security.sample.subjectPerspective"); //$NON-NLS-1$
    layout.addShowViewShortcut("org.eclipse.equinox.security.sample.subjectView"); // $NON-NLS-1$
  }
Ejemplo n.º 12
0
    /**
     * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
     *     <!-- begin-user-doc -->
     *     Create a fixed layout with Editor top left, Properties top right, folder at the bottom
     *     containing the ResourceNavigator and a placeholder for the peoples view. This closes #7.
     *     <!-- end-user-doc -->
     * @generated NOT
     */
    @Override
    public void createInitialLayout(IPageLayout layout) {
      layout.setEditorAreaVisible(true);
      layout.addPerspectiveShortcut(ID_PERSPECTIVE);
      layout.setFixed(true);

      IFolderLayout bottom =
          layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.50, layout.getEditorArea());

      bottom.addView("org.eclipse.ui.views.ResourceNavigator");
      IViewLayout viewLayout = layout.getViewLayout("org.eclipse.ui.views.ResourceNavigator");
      viewLayout.setCloseable(false);
      viewLayout.setMoveable(false);
      // Create a placeholder at the bottom for the Person view
      bottom.addPlaceholder("com.verticon.treatment.views.PeopleView");

      layout.addView(
          IPageLayout.ID_PROP_SHEET, IPageLayout.RIGHT, (float) 0.55, layout.getEditorArea());
      viewLayout = layout.getViewLayout(IPageLayout.ID_PROP_SHEET);
      viewLayout.setCloseable(false);
      viewLayout.setMoveable(false);
    }
 public void createInitialLayout(IPageLayout layout) {
   layout.setFixed(true);
   layout.addView("org.kevin.navigetor.view", IPageLayout.LEFT, 0.4f, layout.getEditorArea());
 }
  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.addView(IPageLayout.ID_RES_NAV);

    IFolderLayout outputfolder =
        layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); // $NON-NLS-1$
    outputfolder.addView(IPageLayout.ID_PROP_SHEET);
    outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW);
    outputfolder.addView("org.jbpm.eclipse.task.views.TaskView");
    outputfolder.addView("org.drools.eclipse.debug.AuditView");
    //        outputfolder.addView("org.guvnor.tools.views.RepositoryView");
    outputfolder.addPlaceholder(JavaUI.ID_JAVADOC_VIEW);
    outputfolder.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
    outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);

    layout.addNewWizardShortcut(IKieConstants.BPMN2_MODELER_JBPM_WIZARD);
    layout.addNewWizardShortcut("org.jbpm.eclipse.new.project");

    layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea);

    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);

    // views - java
    layout.addShowViewShortcut(JavaUI.ID_PACKAGES);
    layout.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY);
    layout.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW);
    layout.addShowViewShortcut(JavaUI.ID_JAVADOC_VIEW);

    // views - standard workbench
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
    layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
    layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID);

    // new actions - Java project creation wizard
    layout.addNewWizardShortcut(
        "org.eclipse.jdt.ui.wizards.NewPackageCreationWizard"); //$NON-NLS-1$
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewClassCreationWizard"); // $NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.jdt.ui.wizards.NewInterfaceCreationWizard"); //$NON-NLS-1$
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewEnumCreationWizard"); // $NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard"); //$NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard"); //$NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.jdt.ui.wizards.NewSnippetFileCreationWizard"); //$NON-NLS-1$
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder"); // $NON-NLS-1$
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file"); // $NON-NLS-1$
    layout.addNewWizardShortcut(
        "org.eclipse.ui.editors.wizards.UntitledTextFileWizard"); //$NON-NLS-1$
  }
 public void createInitialLayout(IPageLayout layout) {
   layout.setEditorAreaVisible(false);
   String editorArea = layout.getEditorArea();
   layout.addView(View.ID, IPageLayout.LEFT, 1.00f, editorArea);
 }