Examples of registerToolWindow()


Examples of com.intellij.openapi.wm.ToolWindowManager.registerToolWindow()

                //try to load available goals from maven. this is done via
                //PSI, but unfortunately, PSI is not available at this stage.
                //
                final ToolWindowManager twMgr = ToolWindowManager.getInstance(project);
                final PomManagerPanel ui = new PomManagerPanel(project);
                final ToolWindow tw = twMgr.registerToolWindow(PomManagerPanel.TITLE,
                                                               ui,
                                                               ToolWindowAnchor.RIGHT);
                tw.setIcon(Icons.MAVEN);
            }
        };
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager.registerToolWindow()

        final ToolWindowManager toolMgr = ToolWindowManager.getInstance(project);
        final String twName = SynchronizationResultsPanel.NAME;

        final SynchronizationResultsPanel ui = new SynchronizationResultsPanel(project);
        final ToolWindowAnchor anchor = ToolWindowAnchor.BOTTOM;
        final ToolWindow tw = toolMgr.registerToolWindow(twName, ui, anchor);

        tw.setIcon(Icons.SYNC);
        tw.setAvailable(false, null);
    }
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager.registerToolWindow()

     * @param pProject the project
     */
    public static void register(final Project pProject) {
        final ToolWindowManager toolMgr = ToolWindowManager.getInstance(pProject);
        final RepoToolWindow toolWindowComp = new RepoToolWindow(pProject);
        toolMgr.registerToolWindow(NAME, toolWindowComp, ToolWindowAnchor.RIGHT);
        final ToolWindow toolWindow = toolMgr.getToolWindow(NAME);
        toolWindow.setIcon(Icons.REPOSITORY);
    }

    /**
 
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager.registerToolWindow()

     * Performs project initialization. Invoked by IDEA when the project is opened.
     */
    public void projectOpened()
    {
        ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);
        ToolWindow toolWindow = toolWindowManager.registerToolWindow(TOOL_WINDOW_ID, false, ToolWindowAnchor.BOTTOM);

        pluginPanel = createPluginPanel();
        ContentFactory contentFactory = PeerFactory.getInstance().getContentFactory();
        Content content = contentFactory.createContent(pluginPanel, "", false);

View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager.registerToolWindow()

    private ToolWindow initExecutionConsole() {
        ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(getProject());
        ToolWindow toolWindow = toolWindowManager.getToolWindow(TOOL_WINDOW_ID);
        if (toolWindow == null) {
            toolWindow = toolWindowManager.registerToolWindow(TOOL_WINDOW_ID, true, ToolWindowAnchor.BOTTOM, this, true);
            toolWindow.setIcon(Icons.WINDOW_EXECUTION_CONSOLE);
            toolWindow.setToHideOnEmptyContent(true);
        }

        if (toolWindow.getContentManager().getContents().length == 0) {
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager.registerToolWindow()


  private void initToolWindow() {
    final ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(_project);

    _toolWindow = toolWindowManager.registerToolWindow(getInternalToolWindowId(), false, ToolWindowAnchor.BOTTOM);
    _toolWindow.setTitle(FindBugsPluginConstants.TOOL_WINDOW_ID);
    _toolWindow.setType(ToolWindowType.DOCKED, null);


    final ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager.registerToolWindow()

    private SimpleToolWindowPanel panel;
    private ToolWindow toolWindow;

    public void registerWindowFor(Project project) {
      ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);
      toolWindow = toolWindowManager.registerToolWindow(PLUGINS_TOOL_WINDOW_ID, false, ToolWindowAnchor.RIGHT);
      toolWindow.setIcon(IdeUtil.PLUGIN_TOOLWINDOW_ICON);

      toolWindow.getContentManager().addContent(createContent(project));
    }
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager.registerToolWindow()

     *
     * @param project project object
     */
    public void registerRestClientToolWindow(Project project) {
        ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);
        ToolWindow toolWindow = toolWindowManager.registerToolWindow(TOOL_WINDOW_ID, false, ToolWindowAnchor.BOTTOM);
        ContentFactory contentFactory = PeerFactory.getInstance().getContentFactory();
        Content content = contentFactory.createContent(constructPanel(project, restMain.getView()), "", false);
        toolWindow.getContentManager().addContent(content);
        toolWindow.setIcon(icon);
    }
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager.registerToolWindow()

        toolWindowManager.unregisterToolWindow(TOOLWINDOW_ID);
    }

    private void registerToolWindow() {
        ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);
        ToolWindow toolWindow = toolWindowManager.registerToolWindow(TOOLWINDOW_ID, false, ToolWindowAnchor.BOTTOM);
        console = TextConsoleBuilderFactory.getInstance().createBuilder(project).getConsole();
        Content content = ServiceManager.getService(ContentFactory.class).createContent(console.getComponent(), "Console", true);
        toolWindow.setIcon(IvyIdeaIcons.MAIN_ICON_SMALL);
        toolWindow.getContentManager().addContent(content);
    }
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager.registerToolWindow()

        ToolWindowManager manager = ToolWindowManager.getInstance(project);
        ToolWindow window = manager.getToolWindow(ID);

        if (window == null) {
            window = manager.registerToolWindow(ID, false, ToolWindowAnchor.BOTTOM);
            ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
            Content content = contentFactory.createContent(consoleView.getComponent(), "", false);
            window.getContentManager().addContent(content);
            window.setIcon(GoIcons.GAE_ICON_13x13);
            window.setToHideOnEmptyContent(true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.