Java 类org.eclipse.ui.console.IConsoleConstants 实例源码

项目:google-cloud-eclipse    文件:LocalAppEngineConsolePageParticipant.java   
private void configureToolBar(IToolBarManager toolbarManager) {
  terminateAction = new Action(Messages.actionStop) {
    @Override
    public void run() {
      //code to execute when button is pressed
      LocalAppEngineServerBehaviour serverBehaviour = console.getServerBehaviourDelegate();
      if (serverBehaviour != null) {
        // try to initiate a nice shutdown
        boolean force = serverBehaviour.getServer().getServerState() == IServer.STATE_STOPPING;
        serverBehaviour.stop(force);
      }
      update();
    }
  };
  terminateAction.setToolTipText(Messages.actionStopToolTip);
  terminateAction.setImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_ELCL_STOP));
  terminateAction.setHoverImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_CLCL_STOP));
  terminateAction.setDisabledImageDescriptor(ImageResource.getImageDescriptor(ImageResource.IMG_DLCL_STOP));

  toolbarManager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, terminateAction);
}
项目:angular-eclipse    文件:AngularPerspectiveFactory.java   
@Override
public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float) 0.25, editorArea); //$NON-NLS-1$
    left.addView(IPageLayout.ID_PROJECT_EXPLORER);
    left.addPlaceholder(IPageLayout.ID_RES_NAV);

    IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$
    bottom.addView("org.eclipse.tm.terminal.view.ui.TerminalsView");
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);

    bottom.addPlaceholder(TemplatesView.ID);
    bottom.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
    bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
    bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    bottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
    bottom.addPlaceholder(IPageLayout.ID_TASK_LIST);
    bottom.addPlaceholder(IPageLayout.ID_PROP_SHEET);

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

}
项目:CodeCheckerEclipsePlugin    文件:CodeCheckerPerspectiveFactory.java   
private void defineActions(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float) 0.26,
            editorArea);
    left.addView(IPageLayout.ID_PROJECT_EXPLORER);

    IFolderLayout middleLeft = layout.createFolder("middleLeft", IPageLayout.BOTTOM, (float)
            0.33, "left");
    middleLeft.addView(ReportListView.ID);
    middleLeft.addView(ReportListViewProject.ID);

    IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, (float) 0.8,
            editorArea);
    right.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    right.addView(IPageLayout.ID_OUTLINE);
    right.addView(IPageLayout.ID_TASK_LIST);

    IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.8,
            editorArea);
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
}
项目:typescript.java    文件:TypeScriptPerspectiveFactory.java   
@Override
public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, (float) 0.25, editorArea); //$NON-NLS-1$
    left.addView(IPageLayout.ID_PROJECT_EXPLORER);
    left.addPlaceholder(IPageLayout.ID_RES_NAV);

    IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$
    bottom.addView("org.eclipse.tm.terminal.view.ui.TerminalsView");
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);

    bottom.addPlaceholder(TemplatesView.ID);
    bottom.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
    bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
    bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    bottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
    bottom.addPlaceholder(IPageLayout.ID_TASK_LIST);
    bottom.addPlaceholder(IPageLayout.ID_PROP_SHEET);

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

}
项目:cppcheclipse    文件:Console.java   
public void show() {

    Runnable runnable = new Runnable() {
        public void run() {
            // this should only be called from GUI thread
            IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
            if (window == null) {
                CppcheclipsePlugin.logError("Could not show console because there is no active workbench window");
                return;
            }
            IWorkbenchPage page = window.getActivePage();
            if (page == null) {
                CppcheclipsePlugin.logError("Could not show console because there is no active page");
                return;
            }
            try {
                IConsoleView view = (IConsoleView) page.showView(IConsoleConstants.ID_CONSOLE_VIEW);
                view.display(messageConsole);
            } catch (PartInitException e) {
                CppcheclipsePlugin.logError("Could not show console", e);
            }

        }
    };
    Display.getDefault().asyncExec(runnable);
}
项目:JuliaDT    文件:JuliaPerspective.java   
protected void addFolders(IPageLayout layout) {
  IFolderLayout leftFolder = layout.createFolder("left", IPageLayout.LEFT, (float) 0.2, //$NON-NLS-1$
      layout.getEditorArea());
  leftFolder.addView(DLTKUIPlugin.ID_SCRIPT_EXPLORER);
  leftFolder.addView("org.eclipse.dltk.testing.ResultView"); //$NON-NLS-1$
  leftFolder.addPlaceholder("org.eclipse.dltk.ui.TypeHierarchy"); //$NON-NLS-1$
  leftFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);

  IFolderLayout bottomFolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, //$NON-NLS-1$
      layout.getEditorArea());
  bottomFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
  bottomFolder.addView(IPageLayout.ID_TASK_LIST);
  bottomFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);

  bottomFolder.addPlaceholder("org.eclipse.dltk.callhierarchy.view"); //$NON-NLS-1$
  bottomFolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
  bottomFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
}
项目:jdepend4eclipse    文件:JDependPerspectiveFactory.java   
@Override
public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    layout.setEditorAreaVisible(false);

    IFolderLayout top =
            layout.createFolder("top", IPageLayout.TOP, 1f, editorArea);  //$NON-NLS-1$
    top.addView(DependencyView.ID);
    top.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);

    IFolderLayout bottom_left =
            layout.createFolder("bottom_left", IPageLayout.LEFT, 0.3f, DependencyView.ID);  //$NON-NLS-1$
    bottom_left.addView(MetricsView.ID);

    IFolderLayout left =
            layout.createFolder("left", IPageLayout.TOP, 0.7f, MetricsView.ID);    //$NON-NLS-1$
    left.addView(PackageTreeView.ID);
}
项目:HMM    文件:ConsolePageParticipant.java   
@Override
public void init(IPageBookViewPage page, IConsole console) {
    IPageSite pageSite = page.getSite();
    IWorkbenchPage workbenchPage = pageSite.getPage();
    IViewPart viewPart = workbenchPage.findView(IConsoleConstants.ID_CONSOLE_VIEW);
    IViewSite viewSite = viewPart.getViewSite();
    IActionBars actionBars = viewSite.getActionBars();
    IToolBarManager toolBarManager = actionBars.getToolBarManager();
    IContributionItem[] items = toolBarManager.getItems();
    for(int i = 0; i < items.length; ++i) {
        IContributionItem item = items[i];
        if(item instanceof ActionContributionItem) {
            IAction action = ((ActionContributionItem) item).getAction();
            String text = action.getText();
            if(text.equals("Pi&n Console") || text.equals("Open Console"))
                toolBarManager.remove(item);
        }
    }
}
项目:APICloud-Studio    文件:WebPerspectiveFactory.java   
public void createInitialLayout(IPageLayout layout)
{
    // Get the editor area
    String editorArea = layout.getEditorArea();

    // Left
    IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.20f, editorArea); //$NON-NLS-1$
    left.addView(IPageLayout.ID_PROJECT_EXPLORER);
    left.addPlaceholder(APP_EXPLORER_ID);
    left.addPlaceholder("com.aptana.ui.io.remoteview"); //$NON-NLS-1$

    // Bottom right: Console. Had to leave this programmatic to get the Console appear in bottom right
    IFolderLayout bottomArea = layout.createFolder("terminalArea", IPageLayout.BOTTOM, 0.75f, //$NON-NLS-1$
            editorArea);
    bottomArea.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    bottomArea.addPlaceholder("com.aptana.terminal.views.terminal:*"); //$NON-NLS-1$

    UIUtils.setCoolBarVisibility(true);
}
项目:FoxBPM-Designer    文件:FoxBPMPerspective.java   
@Override
public void createInitialLayout(IPageLayout layout) {
    // 获取透明视图的编辑空间标示
    String editerArea = layout.getEditorArea();

    // 编辑器左上部视图
    IFolderLayout leftTop = layout.createFolder("leftTop", IPageLayout.LEFT, 0.25f, editerArea); // 相对于‘editerArea’编辑器的位置left
    leftTop.addView(ID_FOXBPM_VIEW);//FOXBPM视图
    leftTop.addView(IPageLayout.ID_PROJECT_EXPLORER); // 工程视图

    // 编辑器左下角视图
    IFolderLayout leftBottom = layout.createFolder("leftBottom", IPageLayout.BOTTOM, 0.5f, IPageLayout.ID_PROJECT_EXPLORER); // 相对于上面‘left’视图的位置在底部
    leftBottom.addView(IPageLayout.ID_OUTLINE); // OUTLINE视图

    // 编辑器底部视图
    IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.65f, editerArea); // 相对于‘editerArea’编辑器的位置底部
    bottom.addView(IPageLayout.ID_PROP_SHEET); // 属性视图
    bottom.addView(ID_SERVERS_VIEW);// 服务器视图
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW); // 问题视图
    bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);// 控制台视图
    bottom.addView(ID_SEARCH_VIEW);// 搜索视图
    bottom.addView(ID_HISTORY_VIEW);// 历史视图
}
项目:antlr4ide    文件:Antlr4Perspective.java   
@Override
public void createInitialLayout(final IPageLayout layout) {
  String editorId = layout.getEditorArea();

  IFolderLayout bottom1 = layout.createFolder("bottom1", IPageLayout.BOTTOM, .75f, editorId);
  bottom1.addView(IPageLayout.ID_PROBLEM_VIEW);
  bottom1.addView(IPageLayout.ID_TASK_LIST);
  bottom1.addView(IConsoleConstants.ID_CONSOLE_VIEW);

  IFolderLayout bottom2 = layout.createFolder("bottom2", IPageLayout.RIGHT, .5f, "bottom1");
  bottom2.addView("com.github.jknack.Antlr4.syntaxDiagram");
  bottom2.addView("antlr4.parseTreeView");

  IFolderLayout folder = layout.createFolder("left", IPageLayout.LEFT, .22f, editorId);
  folder.addView(IPageLayout.ID_PROJECT_EXPLORER);

  IFolderLayout outline = layout.createFolder("right", IPageLayout.RIGHT, .7f, editorId);
  outline.addView(IPageLayout.ID_OUTLINE);
}
项目:eclipse-plugin    文件:RunOnCodenvyShortcut.java   
private void runProjectOnCodenvy(IProject project, final String mode) {
    final ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    final ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType(LAUNCH_CONFIGURATION_TYPE_ID);
    if (launchConfigurationType != null) {
        try {

            final ILaunchConfiguration launchConfiguration =
                                                             getLaunchConfiguration(launchManager, launchConfigurationType, project,
                                                                                    mode);
            PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(IConsoleConstants.ID_CONSOLE_VIEW);
            DebugUITools.launch(launchConfiguration, mode);

        } catch (PartInitException e) {
            throw new RuntimeException(e);
        }
    }
}
项目:eclipse-plugin    文件:BuildOnCodenvyShortcut.java   
private void buildProjectOnCodenvy(IProject project, final String mode) {
    final ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();
    final ILaunchConfigurationType launchConfigurationType = launchManager.getLaunchConfigurationType(LAUNCH_CONFIGURATION_TYPE_ID);
    if (launchConfigurationType != null) {
        try {

            final ILaunchConfiguration launchConfiguration =
                                                             getLaunchConfiguration(launchManager, launchConfigurationType, project,
                                                                                    mode);
            PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(IConsoleConstants.ID_CONSOLE_VIEW);
            DebugUITools.launch(launchConfiguration, mode);

        } catch (PartInitException e) {
            throw new RuntimeException(e);
        }
    }
}
项目:vdt-plugin    文件:ConsoleView.java   
private boolean displayConsoleView()
{
    try
    {
        IWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
        if(activeWorkbenchWindow != null) {
            IWorkbenchPage activePage = activeWorkbenchWindow.getActivePage();

            if (activePage != null)
                activePage.showView(IConsoleConstants.ID_CONSOLE_VIEW, null, IWorkbenchPage.VIEW_VISIBLE);
        }

    } catch(PartInitException partEx) {         
        return false;
    }

    return true;
}
项目:Pydev    文件:PythonPerspectiveFactory.java   
/**
 * @param layout
 * @param editorArea
 */
public void defineLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();
    IFolderLayout topLeft = layout.createFolder("topLeft", IPageLayout.LEFT, (float) 0.26, editorArea); //$NON-NLS-1$
    topLeft.addView("org.python.pydev.navigator.view");

    IFolderLayout outputfolder = layout.createFolder("bottom", IPageLayout.BOTTOM, (float) 0.75, editorArea); //$NON-NLS-1$
    //outputfolder.addView(IPageLayout.ID_PROBLEM_VIEW);
    outputfolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
    outputfolder.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
    outputfolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    outputfolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);

    //Add the outline only if we're not using the minimap.
    if (!MinimapOverviewRulerPreferencesPage.getShowMinimapContents()) {
        layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, (float) 0.75, editorArea);
    }
}
项目:Pydev    文件:PythonPerspectiveFactory.java   
/**
 * @param layout
 */
public void defineActions(IPageLayout layout) {
    layout.addNewWizardShortcut(PythonProjectWizard.WIZARD_ID);
    layout.addNewWizardShortcut(PythonSourceFolderWizard.WIZARD_ID);
    layout.addNewWizardShortcut(PythonPackageWizard.WIZARD_ID);
    layout.addNewWizardShortcut(PythonModuleWizard.WIZARD_ID);
    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$

    layout.addShowViewShortcut("org.python.pydev.navigator.view");
    layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
    layout.addShowViewShortcut("org.python.pydev.debug.pyunit.pyUnitView");
    layout.addShowViewShortcut("org.python.pydev.debug.profile.ProfileView");
    layout.addShowViewShortcut("org.python.pydev.views.PyCodeCoverageView");
    layout.addShowViewShortcut(NewSearchUI.SEARCH_VIEW_ID);
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    //layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);-- Navigator no longer supported
    layout.addShowViewShortcut("org.eclipse.pde.runtime.LogView");
    layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);

    layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET);
    layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);

}
项目:Pydev    文件:ScriptConsole.java   
/**
 * @param page the page where the console view is
 * @param restore whether we should try to restore it
 * @return a list with the parts containing the console
 */
private static List<IViewPart> getConsoleParts(IWorkbenchPage page, boolean restore) {
    List<IViewPart> consoleParts = new ArrayList<IViewPart>();

    IViewReference[] viewReferences = page.getViewReferences();
    for (IViewReference ref : viewReferences) {
        if (ref.getId().equals(IConsoleConstants.ID_CONSOLE_VIEW)) {
            IViewPart part = ref.getView(restore);
            if (part != null) {
                consoleParts.add(part);
                if (restore) {
                    return consoleParts;
                }
            }
        }
    }
    return consoleParts;
}
项目:goclipse    文件:LangPerspective.java   
protected void addViewStructure(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    IFolderLayout leftFolder = layout.createFolder("leftPane", IPageLayout.LEFT, 0.25f, editorArea);
    leftFolder.addView(IPageLayout.ID_PROJECT_EXPLORER);

    IFolderLayout bottomFolder = layout.createFolder("bottomPane", IPageLayout.BOTTOM, 0.75f, editorArea);

    bottomFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottomFolder.addView(IPageLayout.ID_TASK_LIST);
    bottomFolder.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
    bottomFolder.addView(IPageLayout.ID_PROGRESS_VIEW);
    bottomFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);

    // Create outline after bottom pane
    layout.addView(IPageLayout.ID_OUTLINE, IPageLayout.RIGHT, 0.75f, editorArea);
}
项目:gemoc-studio-modeldebugging    文件:XDSMLPerspectiveFactory.java   
/**
   * add views to the layout
   * 
   * @param layout
   *            layout of the perspective
   */
  protected void defineLayout(final IPageLayout layout) {
      final String editorArea = layout.getEditorArea();

      // Left
      IFolderLayout topLeft = layout.createFolder("topLeft", //$NON-NLS-1$
        IPageLayout.LEFT, 0.25f, editorArea);
topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);
topLeft.addView(IModelExplorerView.ID);
topLeft.addPlaceholder(JavaUI.ID_PACKAGES);
topLeft.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);
topLeft.addPlaceholder(IPDEUIConstants.PLUGINS_VIEW_ID);

// Bottom
IFolderLayout bottom = layout.createFolder("bottom", //$NON-NLS-1$
        IPageLayout.BOTTOM, 0.75f, editorArea);
      bottom.addView(IPageLayout.ID_PROP_SHEET);
bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
bottom.addView("org.eclipse.pde.runtime.LogView");
bottom.addView(JavaUI.ID_JAVADOC_VIEW);
bottom.addPlaceholder(JavaUI.ID_SOURCE_VIEW);
bottom.addPlaceholder(TargetStateView.VIEW_ID);
bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);

// Bottom Right
IFolderLayout bottomright = layout.createFolder("bottomRight", IPageLayout.RIGHT, (float) 0.60, "bottom"); //$NON-NLS-1$ //$NON-NLS-2$
bottomright.addPlaceholder("org.eclipse.emf.ecoretools.internal.views.EClassHierarchyView");
bottomright.addPlaceholder("org.eclipse.emf.ecoretools.internal.views.EReferencesView");

// Right
IFolderLayout outlineFolder = layout.createFolder("right", IPageLayout.RIGHT, (float)0.75, editorArea); //$NON-NLS-1$
outlineFolder.addView(IPageLayout.ID_OUTLINE);

  }
项目:neoscada    文件:ItemTraceConsolePageParticipant.java   
@Override
public void init ( final IPageBookViewPage page, final IConsole console )
{
    final ItemTraceIOConsole traceConsole = (ItemTraceIOConsole)console;

    this.mgr = page.getSite ().getActionBars ().getToolBarManager ();
    this.mgr.appendToGroup ( IConsoleConstants.OUTPUT_GROUP, new StopAction ( traceConsole ) );
    this.mgr.appendToGroup ( IConsoleConstants.OUTPUT_GROUP, new CloseAction ( traceConsole ) );
}
项目:gw4e.project    文件:GW4EPerspective.java   
private void addViews() {

    IFolderLayout bottom =
        factory.createFolder(
            "bottomRight", //NON-NLS-1
            IPageLayout.BOTTOM,
            0.75f,
            factory.getEditorArea());
    bottom.addView(IPageLayout.ID_PROP_SHEET);
    bottom.addView("org.gw4e.eclipse.views.PerformanceView");
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottom.addView(JavaUI.ID_JAVADOC_VIEW);
    bottom.addView(JavaUI.ID_SOURCE_VIEW);
    bottom.addPlaceholder(NewSearchUI.SEARCH_VIEW_ID);
    bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
    bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    bottom.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);

    IFolderLayout topLeft =
        factory.createFolder(
            "topLeft", //NON-NLS-1
            IPageLayout.LEFT,
            0.15f,
            factory.getEditorArea());
    topLeft.addView(JavaUI.ID_PACKAGES);
    topLeft.addPlaceholder(JavaUI.ID_TYPE_HIERARCHY);
    topLeft.addPlaceholder(JavaPlugin.ID_RES_NAV);
    topLeft.addPlaceholder(IPageLayout.ID_PROJECT_EXPLORER);

    IFolderLayout outlineFolder = factory.createFolder("right", IPageLayout.RIGHT, (float) 0.85, factory.getEditorArea()); //$NON-NLS-1$
    outlineFolder.addView(IPageLayout.ID_OUTLINE);
}
项目:gw4e.project    文件:GW4EPerspective.java   
private void addViewShortcuts() {
    factory.addShowViewShortcut("org.gw4e.eclipse.views.PerformanceView");
    factory.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
    factory.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    factory.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    factory.addShowViewShortcut(JavaUI.ID_PACKAGES);
    factory.addShowViewShortcut(JavaUI.ID_TYPE_HIERARCHY);
    factory.addShowViewShortcut(JavaUI.ID_SOURCE_VIEW);
    factory.addShowViewShortcut(JavaUI.ID_JAVADOC_VIEW);    
}
项目:pgcodekeeper    文件:ShowConsoleParticipant.java   
@Override
public void init(IPageBookViewPage page, IConsole console) {
    action = new ShowConsoleAction();
    page.getSite().getActionBars().getToolBarManager()
    .appendToGroup(IConsoleConstants.OUTPUT_GROUP, action);
    pageControl = page.getControl();
    prefs.addPropertyChangeListener(action);
}
项目:pandionj    文件:PandionJPerspective.java   
public void createInitialLayout(IPageLayout factory) {
        setupPrefs();
        factory.setEditorAreaVisible(true);
        factory.setFixed(false);

//      factory.addStandaloneView("org.eclipse.jdt.ui.PackageExplorer", false, IPageLayout.LEFT, 0.15f, factory.getEditorArea());
        factory.addView("org.eclipse.jdt.ui.PackageExplorer", IPageLayout.LEFT, 0.15f, factory.getEditorArea());
        factory.addView("pt.iscte.pandionj.view", IPageLayout.RIGHT, 0.5f, factory.getEditorArea());

//      factory.addStandaloneView(IConsoleConstants.ID_CONSOLE_VIEW, false, IPageLayout.BOTTOM, 0.8f, "pt.iscte.pandionj.view");
        factory.addView(IConsoleConstants.ID_CONSOLE_VIEW, IPageLayout.BOTTOM, 0.8f, "pt.iscte.pandionj.view");
        factory.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.JavaProjectWizard");
        factory.addNewWizardShortcut("pt.iscte.perspective.wizards.NewPackageWizard");
        factory.addNewWizardShortcut("pt.iscte.perspective.wizards.NewFileWizard");
    }
项目:egradle    文件:IDEUtil.java   
/**
 * Shows console view
 */
public static void showConsoleView() {
    IWorkbenchPage activePage = getActivePage();
    if (activePage != null) {
        try {
            activePage.showView(IConsoleConstants.ID_CONSOLE_VIEW);
        } catch (PartInitException e) {
            logWarning("Was not able to show console");
        }

    }
}
项目:team-explorer-everywhere    文件:TFSMessageConsolePageParticipant.java   
@Override
public void init(final IPageBookViewPage page, final IConsole console) {
    menuAction = new ShowConsoleMenuAction(
        Messages.getString("TFSMessageConsolePageParticipant.ShowConsoleMenu"), //$NON-NLS-1$
        imageHelper.getImageDescriptor("/images/common/console_showmessages.gif")); //$NON-NLS-1$

    messageAction =
        new ShowConsoleAction(
            Messages.getString("TFSMessageConsolePageParticipant.ShowConsoleForNewMessage"), //$NON-NLS-1$
            UIPreferenceConstants.CONSOLE_SHOW_ON_NEW_MESSAGE,
            null);

    warningAction =
        new ShowConsoleAction(
            Messages.getString("TFSMessageConsolePageParticipant.ShowConsoleForNewWarning"), //$NON-NLS-1$
            UIPreferenceConstants.CONSOLE_SHOW_ON_NEW_WARNING,
            null);

    errorAction =
        new ShowConsoleAction(
            Messages.getString("TFSMessageConsolePageParticipant.ShowConsoleForNewError"), //$NON-NLS-1$
            UIPreferenceConstants.CONSOLE_SHOW_ON_NEW_ERROR,
            null);

    // contribute to menubar
    menuAction.addAction(messageAction);
    menuAction.addAction(warningAction);
    menuAction.addAction(errorAction);

    // contribute to toolbar
    final IActionBars actionBars = page.getSite().getActionBars();

    actionBars.getToolBarManager().appendToGroup(IConsoleConstants.OUTPUT_GROUP, menuAction);
}
项目:google-cloud-eclipse    文件:DeployConsolePageParticipant.java   
private void configureToolBar(IToolBarManager toolbarManager) {
  terminateAction = createTerminateAction();
  toolbarManager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, terminateAction);

  closeAction = createCloseAction();
  toolbarManager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, closeAction);
}
项目:ftc    文件:FtcPerspective.java   
private void addViews() {

        IFolderLayout bottom = layoutFactory.createFolder("bottomRight", // NON-NLS-1
                IPageLayout.BOTTOM, 0.75f, layoutFactory.getEditorArea());
        bottom.addView(PluginConst.RESULT_VIEW_ID);
        bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
        bottom.addView(IProgressConstants.PROGRESS_VIEW_ID);

        IFolderLayout topLeft = layoutFactory.createFolder("topLeft", // NON-NLS-1
                IPageLayout.LEFT, 0.25f, layoutFactory.getEditorArea());
        topLeft.addView(IConsoleConstants.ID_CONSOLE_VIEW);
        topLeft.addView(IPageLayout.ID_PROJECT_EXPLORER);//ID_RES_NAV);

    }
项目:texlipse    文件:TexPerspectiveFactory.java   
public void createInitialLayout(IPageLayout layout) {
    String editorArea = layout.getEditorArea();

    //Navigator view left
    layout.addView(IPageLayout.ID_PROJECT_EXPLORER, IPageLayout.LEFT, 0.25f, editorArea);

    //Outline view on the left
    IFolderLayout left = layout.createFolder("left", IPageLayout.BOTTOM, 0.50f, 
            IPageLayout.ID_PROJECT_EXPLORER);
    left.addView(IPageLayout.ID_OUTLINE);
    left.addView(ID_FULL_OUTLINE);

    IFolderLayout bottom =
       layout.createFolder(
          "bottom",
          IPageLayout.BOTTOM,
          0.70f,
          editorArea);
    bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
    bottom.addView(IConsoleConstants.ID_CONSOLE_VIEW);
    bottom.addView(IPageLayout.ID_TASK_LIST);
    bottom.addPlaceholder(IPageLayout.ID_BOOKMARKS);
    bottom.addView(ID_TABLE_VIEW);

    layout.addShowViewShortcut(IPageLayout.ID_BOOKMARKS);
    layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
    layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
    layout.addShowViewShortcut(ID_FULL_OUTLINE);
    layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
    layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
    layout.addShowViewShortcut(ID_TABLE_VIEW);

    //Add project and Latex file creation wizards to menu
    layout.addNewWizardShortcut(ID_PROJECT_WIZARD);
    layout.addNewWizardShortcut(ID_LATEX_FILE_WIZARD);
}
项目:turnus    文件:EclipseUtils.java   
/**
 * Open the default console
 */
public static void openDefaultConsole() {
    try {
        // open a new console in the active workbench window
        MessageConsole console = getDefaultConsole();
        IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
        IConsoleView view = (IConsoleView) page.showView(IConsoleConstants.ID_CONSOLE_VIEW);
        view.display(console);
    } catch (PartInitException e) {
        e.printStackTrace();
    }
}
项目:tlaplus    文件:ConsoleFactory.java   
public void openConsole()
{
    IWorkbenchPage activePage = UIHelper.getActivePage();
    if (activePage != null)
    {
        try
        {
            activePage.showView(IConsoleConstants.ID_CONSOLE_VIEW, TLC_ID, IWorkbenchPage.VIEW_ACTIVATE);
        } catch (PartInitException e)
        {
            ConsolePlugin.log(e);
        }
    }
}
项目:tlaplus    文件:TLAPMConsoleFactory.java   
/**
 * Opens a generic console view using {@link TLAPMConsoleFactory#TLAPM_CONSOLE_ID} as the
 * console name so that it can be found later.
 */
public void openConsole()
{
    IWorkbenchPage activePage = UIHelper.getActivePage();
    if (activePage != null)
    {
        try
        {
            activePage.showView(IConsoleConstants.ID_CONSOLE_VIEW, TLAPM_CONSOLE_ID, IWorkbenchPage.VIEW_ACTIVATE);
        } catch (PartInitException e)
        {
            ConsolePlugin.log(e);
        }
    }
}
项目:caml2tosca    文件:C2TRunHandler.java   
private void showConsole(ExecutionEvent event) throws PartInitException, ExecutionException {
    IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);
    IWorkbenchPage page = window.getActivePage();
    String id = IConsoleConstants.ID_CONSOLE_VIEW;
    IConsoleView view = (IConsoleView) page.showView(id);
    view.display(this.console);
}
项目:cft    文件:CloudFoundryConsolePageParticipant.java   
public void init(IPageBookViewPage page, IConsole console) {
    if (isCloudFoundryConsole(console)) {
        CloseConsoleAction closeAction = new CloseConsoleAction(console);
        closeAction.setImageDescriptor(CloudFoundryImages.CLOSE_CONSOLE);
        IToolBarManager manager = page.getSite().getActionBars().getToolBarManager();
        manager.appendToGroup(IConsoleConstants.LAUNCH_GROUP, closeAction);
    }
}
项目:LogViewer    文件:ConsolePageParticipant.java   
public void init(IPageBookViewPage myPage, IConsole console) {
       page = myPage;
       IToolBarManager toolBarManager = page.getSite().getActionBars()
       .getToolBarManager();
       toolBarManager.appendToGroup(IConsoleConstants.OUTPUT_GROUP, new Separator());
       toolBarManager.appendToGroup(IConsoleConstants.OUTPUT_GROUP, new Action(
            LogViewerPlugin.getResourceString("logviewer.action.openwith.name"),
            UIImages.getImageDescriptor(ILogViewerConstants.IMG_LOG_VIEWER)) {
           public void run() {
            ConsolePageParticipant.this.run();
           }
       });
}
项目:dockerfoundry    文件:DockerExplorerPerspective.java   
private void addViewShortcuts() {
    factory.addShowViewShortcut("org.eclipse.ant.ui.views.AntView"); //NON-NLS-1
    factory.addShowViewShortcut("org.eclipse.team.ccvs.ui.AnnotateView"); //NON-NLS-1
    factory.addShowViewShortcut("org.eclipse.pde.ui.DependenciesView"); //NON-NLS-1
    factory.addShowViewShortcut("org.eclipse.jdt.junit.ResultView"); //NON-NLS-1
    factory.addShowViewShortcut("org.eclipse.team.ui.GenericHistoryView"); //NON-NLS-1
    factory.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
    factory.addShowViewShortcut(JavaUI.ID_PACKAGES);
    factory.addShowViewShortcut(IPageLayout.ID_RES_NAV);
    factory.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
    factory.addShowViewShortcut(IPageLayout.ID_OUTLINE);
}
项目:dockerfoundry    文件:ViewHelper.java   
public static void showConsole(String consoleName, String content) throws IOException, PartInitException{
    IWorkbenchPage page = PlatformUI.getWorkbench()
            .getActiveWorkbenchWindow().getActivePage();
    MessageConsole console = ConsoleHelper
            .findConsole(consoleName);
    MessageConsoleStream out = console.newMessageStream();
    out.println(content);
    out.setActivateOnWrite(true);
    out.setColor(Display.getDefault().getSystemColor(SWT.COLOR_BLUE));
    out.close();

    IConsoleView view = (IConsoleView) page.showView(IConsoleConstants.ID_CONSOLE_VIEW);
    view.display(console);
}
项目:JuliaDT    文件:JuliaPerspective.java   
protected void addShowViewShortcuts(IPageLayout layout) {
  layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
  layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
  layout.addShowViewShortcut(DLTKUIPlugin.ID_SCRIPT_EXPLORER);
  layout.addShowViewShortcut("org.eclipse.dltk.testing.ResultView"); //$NON-NLS-1$
  layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
  layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID);
  layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
  layout.addShowViewShortcut("org.eclipse.dltk.ui.TypeHierarchy"); //$NON-NLS-1$
  layout.addShowViewShortcut("org.eclipse.dltk.callhierarchy.view"); //$NON-NLS-1$
}
项目:scouter    文件:OpenConsoleAction.java   
public void run() {
    if (window != null) {
        try {
            window.getActivePage().showView(IConsoleConstants.ID_CONSOLE_VIEW, null, IWorkbenchPage.VIEW_VISIBLE);
        } catch (PartInitException e) {
            MessageDialog.openError(window.getShell(), "Error", "Error opening view:" + e.getMessage());
        }
    }
}
项目:gwt-eclipse-plugin    文件:CustomMessageConsole.java   
/**
 * Sets the terminate action which affects the visibility of the terminate
 * button.
 * 
 * @param terminateAction the action to invoke when the terminate button is
 *          clicked, or null to remove the terminate button
 */
public synchronized void setTerminateAction(TerminateAction terminateAction) {
  TerminateAction oldTerminateAction = this.terminateAction;
  this.terminateAction = terminateAction;

  updateToolbarAction(oldTerminateAction, terminateAction,
      IConsoleConstants.LAUNCH_GROUP);
}