Package com.intellij.openapi.ui

Examples of com.intellij.openapi.ui.SimpleToolWindowPanel


      console = createConsole(module.getProject(), pubspecYamlFile);
      info = new PubToolWindowContentInfo(module, pubspecYamlFile, command, actionTitle, console);

      final ActionToolbar actionToolbar = createToolWindowActionsBar(info);

      final SimpleToolWindowPanel toolWindowPanel = new SimpleToolWindowPanel(false, true);
      toolWindowPanel.setContent(console.getComponent());
      toolWindowPanel.setToolbar(actionToolbar.getComponent());

      final Content content = ContentFactory.SERVICE.getInstance().createContent(toolWindowPanel.getComponent(), actionTitle, true);
      content.putUserData(PUB_TOOL_WINDOW_CONTENT_INFO_KEY, info);
      Disposer.register(content, console);

      final ContentManager contentManager = MessageView.SERVICE.getInstance(module.getProject()).getContentManager();
      removeOldTabs(contentManager);
View Full Code Here


    public SimpleToolWindowPanel createToolWindowContent(final Project project) {
        changeListPanel.registerChangeListPanel(this);
        diffManager.registerDiffTool(commentsDiffTool);

        SimpleToolWindowPanel panel = new SimpleToolWindowPanel(true, true);

        ActionToolbar toolbar = createToolbar(project);
        toolbar.setTargetComponent(changeListPanel);
        panel.setToolbar(toolbar.getComponent());

        RepositoryChangesBrowser repositoryChangesBrowser = repositoryChangesBrowserProvider.get(project, changeListPanel);

        Splitter detailsSplitter = new Splitter(true, 0.6f);
        detailsSplitter.setShowDividerControls(true);

        changeListPanel.setBorder(IdeBorderFactory.createBorder(SideBorder.TOP | SideBorder.RIGHT | SideBorder.BOTTOM));
        detailsSplitter.setFirstComponent(changeListPanel);

        detailsPanel = new GerritChangeDetailsPanel(project);
        changeListPanel.addListSelectionListener(new Consumer<ChangeInfo>() {
            @Override
            public void consume(ChangeInfo changeInfo) {
                changeSelected(changeInfo, project);
            }
        });
        JPanel details = detailsPanel.getComponent();
        details.setBorder(IdeBorderFactory.createBorder(SideBorder.TOP | SideBorder.RIGHT));
        detailsSplitter.setSecondComponent(details);

        Splitter horizontalSplitter = new Splitter(false, 0.7f);
        horizontalSplitter.setShowDividerControls(true);
        horizontalSplitter.setFirstComponent(detailsSplitter);
        horizontalSplitter.setSecondComponent(repositoryChangesBrowser);

        panel.setContent(horizontalSplitter);

        reloadChanges(project, false);

        return panel;
    }
View Full Code Here

    @Override
    public void createToolWindowContent(final Project project, ToolWindow toolWindow) {
        GerritToolWindow gerritToolWindow = GerritModule.getInstance(GerritToolWindow.class);

        Component component = toolWindow.getComponent();
        SimpleToolWindowPanel toolWindowContent = gerritToolWindow.createToolWindowContent(project);
        component.getParent().add(toolWindowContent);
    }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.ui.SimpleToolWindowPanel

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.