Package com.intellij.openapi.wm

Examples of com.intellij.openapi.wm.ToolWindow


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

        final StartupManager mgr = StartupManager.getInstance(project);
        mgr.registerPostStartupActivity(regToolWinRunnable);
View Full Code Here


        final ToolWindowManager mgr = ToolWindowManager.getInstance(project);
        return mgr.getToolWindow(PomManagerPanel.TITLE);
    }

    public PomManagerPanel getToolWindowComponent() {
        final ToolWindow tw = getToolWindow();
        if (tw != null)
            return (PomManagerPanel) tw.getComponent();

        return null;
    }
View Full Code Here

        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

        public void actionPerformed(final AnActionEvent pEvent) {
            final Project project = getProject(pEvent);
            if (project == null)
                return;

            final ToolWindow tw = SynchronizationResultsPanel.getInstance(project);
            if (tw == null)
                return;

            final String url = getSelectedPomUrl(pEvent);
            if (url == null)
                return;

            tw.setAvailable(true, null);
            tw.show(new Runnable() {
                public void run() {
                    final SynchronizationResultsPanel ui;
                    ui = (SynchronizationResultsPanel) tw.getComponent();
                    final InspectionsManager mgr = InspectionsManager.getInstance(project);
                    final ProblemInfo[] problems = mgr.inspect(url, module);
                    ui.setProblems(problems);
                }
            });
View Full Code Here

                  Icons.CANCEL);
        }

        public void actionPerformed(final AnActionEvent pEvent) {
            final Project project = getProject(pEvent);
            final ToolWindow tw = SynchronizationResultsPanel.getInstance(project);
            if (tw == null)
                return;

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

     */
    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

        // Show in run tool window
        ExecutionManager.getInstance(project).getContentManager().showRunContent(defaultExecutor, myDescriptor);

        // Request focus
        ToolWindow window = ToolWindowManager.getInstance(project).getToolWindow(defaultExecutor.getId());
        if (window != null) {
            window.activate(new Runnable() {
                public void run() {
                    IdeFocusManager.getInstance(project).requestFocus(getLanguageConsole().getCurrentEditor().getContentComponent(), true);
                }
            });
        }
View Full Code Here

        toolWindowManager().unregisterToolWindow(TOOLWINDOW_ID);
    }

    //TODO: can this go - who calls it?
    public void expandPanel() {
        ToolWindow toolWindow = toolWindowManager().getToolWindow(TOOLWINDOW_ID);
        if (!toolWindow.isVisible()) {
            toolWindow.show(null);
        }
    }
View Full Code Here

        createToolWindow(createPanel(createToolBar()));
        console.init();
    }

    private void createToolWindow(JPanel panel) {
        ToolWindow toolwindow = toolWindowManager().registerToolWindow(TOOLWINDOW_ID, panel, ToolWindowAnchor.BOTTOM);
        toolwindow.setTitle("Console");
        toolwindow.setIcon(IconLoader.getIcon("/pmip.png"));
    }
View Full Code Here

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

        toolWindow.getContentManager().addContent(content);
        toolWindow.setIcon(toolWindowIcon);
    }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.wm.ToolWindow

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.