Esempio n. 1
0
  public void createInitialLayout(final IPageLayout layout) {
    final String editorArea = layout.getEditorArea();
    layout.setEditorAreaVisible(false);

    layout.addStandaloneView(ModelTreeView.ID, true, IPageLayout.BOTTOM, 0.1f, editorArea);

    final IFolderLayout folder =
        layout.createFolder("modelViews", IPageLayout.RIGHT, 0.2f, ModelTreeView.ID);
    folder.addPlaceholder(Model3DView.ID + ":*");
    folder.addView(Model3DView.ID);

    layout.addStandaloneView(
        GeneratorTreeView.ID, true, IPageLayout.BOTTOM, 0.7f, ModelTreeView.ID);

    layout.addStandaloneView(SelectionModeView.ID, false, IPageLayout.TOP, 0.95f, editorArea);
    layout.getViewLayout(SelectionModeView.ID).setCloseable(false);

    layout.addStandaloneView(
        ToolControlView.ID, false, IPageLayout.RIGHT, 0.01f, SelectionModeView.ID);
    layout.getViewLayout(ToolControlView.ID).setCloseable(false);

    final IPlaceholderFolderLayout toolFolder =
        layout.createPlaceholderFolder("tools", IPageLayout.RIGHT, 0.01f, ToolControlView.ID);
    toolFolder.addPlaceholder(ToolSelectionView.ID + ":*");
    // toolFolder.addView(ToolSelectionView.ID);

    layout.addStandaloneView(SelectionInfoView.ID, true, IPageLayout.RIGHT, 0.8f, "modelViews");
    final IFolderLayout optionFolder =
        layout.createFolder("optionViews", IPageLayout.BOTTOM, 0.1f, SelectionInfoView.ID);
    optionFolder.addView(NodeOptionView.ID);
    optionFolder.addView(ToolOptionView.ID);

    layout.addShowViewShortcut(Model3DView.ID);
    layout.addShowViewShortcut(ModelTreeView.ID);
  }
Esempio n. 2
0
  public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();
    layout.setEditorAreaVisible(false);
    layout.setFixed(true);

    layout.addStandaloneView(View.ID, false, IPageLayout.LEFT, 1.0f, editorArea);
  }
  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);
  }
Esempio n. 4
0
 @Override
 public void createInitialLayout(IPageLayout factory) {
   this.factory = factory;
   factory.setEditorAreaVisible(false);
   addViews();
   factory.setFixed(false);
 }
 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);
 }
Esempio n. 6
0
    /**
     * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
     *     <!-- begin-user-doc -->
     *     <!-- end-user-doc -->
     * @generated
     */
    public void createInitialLayout(IPageLayout layout) {
      layout.setEditorAreaVisible(true);
      layout.addPerspectiveShortcut(ID_PERSPECTIVE);

      IFolderLayout right =
          layout.createFolder("left", IPageLayout.LEFT, (float) 0.66, layout.getEditorArea());
      right.addView(ID_PLAYERS_VIEW);
    }
Esempio n. 7
0
  @Override
  public void createInitialLayout(IPageLayout aLayout) {
    String editorArea = aLayout.getEditorArea();
    aLayout.setEditorAreaVisible(true);

    aLayout.addStandaloneView(ContactsListView.VIEW_ID, true, IPageLayout.LEFT, 0.25f, editorArea);
    aLayout.getViewLayout(ContactsListView.VIEW_ID).setCloseable(false);
  }
 @Override
 public void createInitialLayout(IPageLayout layout) {
   layout.setEditorAreaVisible(false);
   layout.setFixed(false);
   IFolderLayout mainFolder =
       layout.createFolder("MAIN_FOLDER", IPageLayout.TOP, IPageLayout.RATIO_MAX, null);
   mainFolder.addView(TomoAlignmentViewFactory.ID);
   mainFolder.addView(TomoConfigurationViewFactory.ID);
   layout.addShowViewShortcut(TomoAlignmentViewFactory.ID);
   layout.addShowViewShortcut(TomoConfigurationViewFactory.ID);
 }
Esempio n. 9
0
  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);
    //		new File("").getParent()getAbsolutePath()
    layout.getViewLayout(NavigationView.ID).setCloseable(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);
  }
Esempio n. 11
0
  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);

    // Add the "pure" e4 part to the perspective. The given view ID is matching the PartDescriptor
    // ID in "MyLegacyIDE.e4xmi"
    IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.70f, editorArea);
    bottom.addView("simplercpapp.puree4part");

    layout.getViewLayout(NavigationView.ID).setCloseable(false);
  }
Esempio n. 12
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);
  }
Esempio n. 13
0
  /** {@inheritDoc} */
  public void createInitialLayout(IPageLayout layout) {
    layout.setEditorAreaVisible(true);
    layout.setFixed(false);
    float ratio = 0.4f;
    String editorArea = layout.getEditorArea();

    IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, ratio, editorArea);
    topLeft.addView(RepositoryManagerView.VIEW_ID);
    topLeft.addView(StorageManagerView.VIEW_ID);
    topLeft.addView(DataExplorerView.VIEW_ID);

    layout.getViewLayout(RepositoryManagerView.VIEW_ID).setCloseable(true);
    layout.getViewLayout(RepositoryManagerView.VIEW_ID).setMoveable(true);
    layout.getViewLayout(StorageManagerView.VIEW_ID).setCloseable(true);
    layout.getViewLayout(StorageManagerView.VIEW_ID).setMoveable(true);
    layout.getViewLayout(DataExplorerView.VIEW_ID).setCloseable(true);
    layout.getViewLayout(DataExplorerView.VIEW_ID).setMoveable(true);
  }
  /**
   * Creates a layout containing the following views: Metadata Tree, Dump Contents and Dump Summary,
   * with no editor area.
   *
   * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout( org.eclipse.ui.IPageLayout)
   */
  @Override
  public void createInitialLayout(IPageLayout layout) {
    String editorAreaId = layout.getEditorArea();

    layout.setEditorAreaVisible(false);

    IFolderLayout left =
        layout.createFolder("left", IPageLayout.LEFT, (float) 0.30, editorAreaId); // $NON-NLS-1$
    left.addView(MetadataTreeView.VIEW_ID);

    IFolderLayout right =
        layout.createFolder("right", IPageLayout.RIGHT, (float) 0.5, editorAreaId); // $NON-NLS-1$
    right.addView(DumpContentsView.VIEW_ID);

    IFolderLayout bottom =
        layout.createFolder(
            "bottom", IPageLayout.BOTTOM, (float) 0.70, "right"); // $NON-NLS-1$ //$NON-NLS-2$
    bottom.addView(DumpSummaryView.VIEW_ID);
  }
  public void createInitialLayout(final IPageLayout layout) {

    /*
     * the sequence is VERY important how the folders are created !!!
     */

    layout.setEditorAreaVisible(false);

    // --------------------------------------------------------------------------------

    final IFolderLayout mapFolder =
        layout.createFolder( //
            FOLDER_ID_MAP, IPageLayout.RIGHT, 0.5f, IPageLayout.ID_EDITOR_AREA);

    mapFolder.addView(TourMapView.ID);
    mapFolder.addView(TourDataEditorView.ID);

    // --------------------------------------------------------------------------------

    final IFolderLayout chartFolder =
        layout.createFolder( //
            FOLDER_ID_CHART, IPageLayout.BOTTOM, 0.5f, FOLDER_ID_MAP);

    chartFolder.addView(TourChartView.ID);

    // --------------------------------------------------------------------------------

    final IFolderLayout listFolder =
        layout.createFolder(FOLDER_ID_LIST, IPageLayout.TOP, 0.6f, IPageLayout.ID_EDITOR_AREA);

    listFolder.addView(RawDataView.ID);
    listFolder.addView(TourBookView.ID);

    // --------------------------------------------------------------------------------

    final IFolderLayout markerFolder =
        layout.createFolder(FOLDER_ID_MARKER, IPageLayout.BOTTOM, 0.6f, FOLDER_ID_LIST);

    markerFolder.addView(TourStatisticsView.ID);
    markerFolder.addView(TourMarkerView.ID);
    markerFolder.addView(TourWaypointView.ID);
  }
Esempio n. 16
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$
  }
Esempio n. 17
0
  public void createInitialLayout(IPageLayout layout) {
    // TODO: This should define the "default" ALIVE perspective
    // E.g., allowing project management, dashboards, etc.
    // Other tools (plugins) will define their own perspectives for using them.
    String editorArea = layout.getEditorArea();

    layout.setEditorAreaVisible(true);
    layout.setFixed(false);

    // Build the window/place views:

    // Top left: Project Explorer view and Outline view placeholder
    IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, 0.15f, editorArea);
    IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.5f, editorArea);
    bottom.addView("net.sf.ictalive.operetta.dashboard.DashboardPart");
    bottom.addView(IPageLayout.ID_PROP_SHEET);
    bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);

    topLeft.addView("net.sf.ictalive.navigator");
  }
  /*
   * (non-Javadoc)
   *
   * @see org.eclipse.ui.IPerspectiveFactory#createInitialLayout(org.eclipse.ui.IPageLayout)
   */
  public void createInitialLayout(IPageLayout layout) {
    layout.setEditorAreaVisible(true);
    layout.setFixed(false);
    layout.addStandaloneView(
        IStudioConstants.STUDIO_MENU_NAVIGATOR_ID,
        true,
        IPageLayout.LEFT,
        0.15f,
        layout.getEditorArea());
    layout.addPerspectiveShortcut(IStudioConstants.STUDIO_PERSPECTIVE_ID);

    IFolderLayout bottom =
        layout.createFolder("bottom", IPageLayout.BOTTOM, 0.75f, layout.getEditorArea());
    bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    bottom.addView("org.eclipse.pde.runtime.LogView");
    bottom.addView("org.eclipse.ui.views.ProblemView");
    bottom.addView(XjcFieldViewPart.ID);

    layout.addStandaloneView(
        EngineConstants.CONTENT_OUT_LINE, true, IPageLayout.RIGHT, 0.70f, layout.getEditorArea());
  }
    /**
     * @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);
    }
Esempio n. 20
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);
  }
  @Override
  public void createInitialLayout(final IPageLayout layout) {

    /*
     * the sequence is VERY important how the folders are created !!!
     */

    layout.setEditorAreaVisible(false);

    // --------------------------------------------------------------------------------

    final IFolderLayout mapFolder =
        layout.createFolder(
            FOLDER_ID_MAP, //
            IPageLayout.RIGHT,
            0.4f,
            IPageLayout.ID_EDITOR_AREA);

    mapFolder.addView(Map2View.ID);
    mapFolder.addPlaceholder(IExternalIds.VIEW_ID_NET_TOURBOOK_MAP3_MAP3_VIEW_ID);
    mapFolder.addView(TourDataEditorView.ID);
    mapFolder.addPlaceholder(TourLogView.ID);

    // --------------------------------------------------------------------------------

    final IFolderLayout chartFolder =
        layout.createFolder(
            FOLDER_ID_CHART, //
            IPageLayout.BOTTOM,
            0.5f,
            FOLDER_ID_MAP);

    chartFolder.addView(TourChartView.ID);

    // --------------------------------------------------------------------------------

    final IFolderLayout listFolder =
        layout.createFolder(
            FOLDER_ID_LIST, //
            IPageLayout.TOP,
            0.6f,
            IPageLayout.ID_EDITOR_AREA);

    listFolder.addView(RawDataView.ID);
    listFolder.addView(TourBookView.ID);
    listFolder.addView(CalendarView.ID);
    listFolder.addPlaceholder(CollatedToursView.ID);
    listFolder.addView(StatisticView.ID);
    listFolder.addPlaceholder(PicDirView.ID);

    // --------------------------------------------------------------------------------

    final IFolderLayout markerFolder =
        layout.createFolder(
            FOLDER_ID_MARKER, //
            IPageLayout.BOTTOM,
            0.6f,
            FOLDER_ID_LIST);

    markerFolder.addView(TourMarkerView.ID);
    markerFolder.addView(TourWaypointView.ID);
  }
Esempio n. 22
0
 public void createInitialLayout(IPageLayout layout) {
   layout.setEditorAreaVisible(true);
 }
Esempio n. 23
0
 public void createInitialLayout(IPageLayout layout) {
   // layout.addView("org.carrot2.workbench.views.aduna", IPageLayout.RIGHT, 0.3f,
   // layout.getEditorArea());
   layout.setEditorAreaVisible(true);
 }
  public void createInitialLayout(IPageLayout factory) {

    //		factory.addShowViewShortcut(PLOT_VIEW_ID);

    factory.addPerspectiveShortcut(EXPERIMENT_PERSPECTIVE_ID);

    //		factory.addStandaloneView(CONTROL_VIEW_ID, false,
    //				IPageLayout.BOTTOM, 0.70f, factory.getEditorArea());

    factory.addStandaloneView(
        ID_VIEW_ACTIVITY_MONITOR, false, IPageLayout.BOTTOM, 0.70f, factory.getEditorArea());

    factory.addStandaloneView(
        SICS_TERMINAL_VIEW_ID, false, IPageLayout.LEFT, 0.50f, ID_VIEW_ACTIVITY_MONITOR);

    factory.addStandaloneView(
        PROJECT_EXPLORER_VIEW_ID, true, IPageLayout.LEFT, 0.5f, SICS_TERMINAL_VIEW_ID);

    //		factory.addStandaloneView(WORKFLOW_VIEW_ID, true,
    //				IPageLayout.TOP, 0.99f, factory.getEditorArea());

    factory.addStandaloneView(
        SICS_BUFFER_RUNNER, true, IPageLayout.RIGHT, 0.502f, factory.getEditorArea());

    //		IFolderLayout bottomCenter = factory.createFolder("bottomCenter",
    //				IPageLayout.LEFT, 0.382f, PLOT_VIEW_ID + ":3");
    //		bottomCenter.addView(ANALYSIS_PARAMETERS_VIEW_ID);

    //		factory.addStandaloneView(FILTERED_STATUS_MONITOR_VIEW_ID, false,
    //				IPageLayout.BOTTOM, 0.493f, PLOT_VIEW_ID + ":2");
    //

    //		IWorkbench workbench = PlatformUI.getWorkbench();

    //		IEditorInput input = new NullEditorInput();
    String makeNewEditor = System.getProperty("gumtree.echidna.openNewEditor", "false");
    if (Boolean.parseBoolean(makeNewEditor)) {
      try {
        IFileEditorInput input = getFileStorage(0);
        PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow()
            .getActivePage()
            .openEditor(input, ID_TCL_EDITOR);
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    }
    //		workbench.getActiveWorkbenchWindow().addPerspectiveListener(new IPerspectiveListener() {
    //
    //			@Override
    //			public void perspectiveChanged(IWorkbenchPage page,
    //					IPerspectiveDescriptor perspective, String changeId) {
    //				// TODO Auto-generated method stub
    //
    //			}
    //
    //			@Override
    //			public void perspectiveActivated(IWorkbenchPage page,
    //					IPerspectiveDescriptor perspective) {
    //				// TODO Auto-generated method stub
    //
    //			}
    //		});

    //	    try {
    //	        PlatformUI.getWorkbench().getActiveWorkbenchWindow().;
    //	    } catch ( Exception e ) {
    //	        e.printStackTrace();
    //	    }

    //		factory.addStandaloneView(EXPORT_ALL_VIEW_ID, false,
    //				IPageLayout.BOTTOM, 0.94f, factory.getEditorArea());

    //		factory.addView(WORKFLOW_VIEW_ID, IPageLayout.TOP, 1f, factory.getEditorArea());

    //		factory.addStandaloneView(FILTERED_STATUS_MONITOR_VIEW_ID, false,
    //				IPageLayout.BOTTOM, 0.663f, WORKFLOW_VIEW_ID);

    //		IFolderLayout bottomLeft = factory.createFolder(
    //				"bottomLeft", //NON-NLS-1
    //				IPageLayout.BOTTOM,
    //				0.663f,
    //				WORKFLOW_VIEW_ID);
    //		bottomLeft.addView(FILTERED_STATUS_MONITOR_VIEW_ID);

    //		IFolderLayout bottomLeft2 = factory.createFolder(
    //				"bottomLeft2", //NON-NLS-1
    //				IPageLayout.RIGHT,
    //				0.53f,
    //				"bottomLeft");
    //		bottomLeft2.addView(SICS_TERMINAL_VIEW_ID);

    //		IPerspectiveDescriptor descriptor = factory.getDescriptor();
    //		try {
    //			PlotManager.resetPlotViewId();
    //			kakadu.loadAlgorithm(cicada.loadAlgorithm("Online Reduction"), descriptor);
    //			AlgorithmTask task = ProjectManager.getCurrentAlgorithmTask();
    //			task.runAlgorithm();
    ////			ExportAllView.setAlgorithmTask(task);
    //		} catch (NoneAlgorithmException e) {
    //			e.printStackTrace();
    //		}
    //		factory.setEditorAreaVisible(false);
    //		factory.getViewLayout(CONTROL_VIEW_ID).setCloseable(false);
    //		factory.getViewLayout(WORKFLOW_VIEW_ID).setCloseable(false);
    //		factory.getViewLayout(WORKFLOW_VIEW_ID).setMoveable(false);
    //		factory.getViewLayout(PROJECT_EXPLORER_VIEW_ID).setCloseable(false);
    //		factory.getViewLayout(PROJECT_EXPLORER_VIEW_ID).setMoveable(false);
    //		factory.getViewLayout(SICS_BUFFER_RUNNER).setCloseable(false);
    //		factory.getViewLayout(SICS_BUFFER_RUNNER).setMoveable(false);
    factory.setEditorAreaVisible(true);
    //		factory.getViewLayout(FILTERED_STATUS_MONITOR_VIEW_ID).setCloseable(false);
    //		factory.getViewLayout(ANALYSIS_PARAMETERS_VIEW_ID).setCloseable(false);

    //		factory.setFixed(true);
  }
Esempio n. 25
0
 public void createInitialLayout(IPageLayout layout) {
   String editorArea = layout.getEditorArea();
   layout.setEditorAreaVisible(false);
   layout.addStandaloneView("HelloRAP.view1", false, IPageLayout.LEFT, 0.95f, editorArea);
 }
Esempio n. 26
0
 @Override
 public void createInitialLayout(IPageLayout layout) {
   layout.setEditorAreaVisible(false);
   layout.setFixed(true);
 }
 public void createInitialLayout(IPageLayout layout) {
   layout.setEditorAreaVisible(false);
   String editorArea = layout.getEditorArea();
   layout.addView(View.ID, IPageLayout.LEFT, 1.00f, editorArea);
 }
Esempio n. 28
0
 @Override
 public void createInitialLayout(IPageLayout layout) {
   layout.setEditorAreaVisible(false);
   layout.setFixed(true);
   layout.addStandaloneView(MapView.ID, false, IPageLayout.LEFT, 1.0f, layout.getEditorArea());
 }
Esempio n. 29
0
 public void createInitialLayout(IPageLayout layout) {
   layout.addStandaloneView(
       ExampleViewPart.ID, false, IPageLayout.LEFT, .3F, IPageLayout.ID_EDITOR_AREA);
   layout.setEditorAreaVisible(false);
 }