Package com.intellij.ui.content

Examples of com.intellij.ui.content.ContentFactory


    messageContent = ContentFactory.SERVICE.getInstance().createContent(lbMessage, RevuPlugin.PLUGIN_NAME, true);
  }

  private IssueBrowsingPane addReviewTab(@NotNull Review review)
  {
    ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();

    IssueBrowsingPane issueBrowsingPane = new IssueBrowsingPane(project, review);

    Content content = contentFactory.createContent(issueBrowsingPane.getContentPane(), buildTableTitle(review), true);
    content.putUserData(RevuKeys.ISSUE_BROWSING_PANE_KEY, issueBrowsingPane);
    content.setCloseable(false);

    toolwindow.getContentManager().addContent(content);
    contentsByReviews.put(review, content);
View Full Code Here


    {
        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

            toolWindow.setToHideOnEmptyContent(true);
        }

        if (toolWindow.getContentManager().getContents().length == 0) {
            ExecutionConsoleForm executionConsoleForm = getExecutionConsoleForm();
            ContentFactory contentFactory = new ContentFactoryImpl();
            Content content = contentFactory.createContent(executionConsoleForm.getComponent(), null, true);
            toolWindow.getContentManager().addContent(content);
            toolWindow.setAvailable(true, null);
        }
        return toolWindow;
    }
View Full Code Here

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


    final ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();

    final JComponent toolWindowPanel = new ToolWindowPanel(_project, _toolWindow);
    final Content content = contentFactory.createContent(toolWindowPanel, "FindBugs Analysis Results", false);

    _toolWindow.getContentManager().addContent(content);
    _toolWindow.setIcon(GuiResources.FINDBUGS_ICON_13X13);
  }
View Full Code Here


        contentPane.add(buttonsPanel, BorderLayout.NORTH);


        ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
        Content content = contentFactory.createContent(contentPane, "", false);
        toolWindow.getContentManager().addContent(content);
        if (yiiFile != null && yiic.yiicIsRunnable(yiiFile)) {
            yiiProtected = yiiFile.replaceAll("yiic.(bat|php)$", "");
            runBackgroundTask(this.ADD_MENUS_BACKGROUND_ACTION, project);
        } else {
View Full Code Here

        return mksTextArea;
    }

    private ToolWindow registerToolWindow(final ToolWindowManager toolWindowManager, final JPanel mksPanel) {
        final ToolWindow toolWindow = toolWindowManager.registerToolWindow(MKS_TOOLWINDOW, true, ToolWindowAnchor.BOTTOM);
        final ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
        final Content content = contentFactory.createContent(mksPanel, "", false); // first arg is a JPanel
        content.setCloseable(false);
        toolWindow.getContentManager().addContent(content);

        toolWindow.setIcon(IconLoader.getIcon(ICONS_MKS_GIF, getClass()));
        return toolWindow;
View Full Code Here

    public Content addContentPanel(String contentName, ScriptShellPanel scriptShellPanel) {

        ScriptShellTabContent scriptShellTabContent = new ScriptShellTabContent(scriptShellPanel);

        ContentFactory contentFactory = PeerFactory.getInstance().getContentFactory();

        Content content = contentFactory.createContent(scriptShellTabContent, contentName, false);
        toolWindow.getContentManager().addContent(content);
        return content;
    }
View Full Code Here

    messageContent = ContentFactory.SERVICE.getInstance().createContent(lbMessage, RevuPlugin.PLUGIN_NAME, true);
  }

  private IssueBrowsingPane addReviewTab(@NotNull Review review)
  {
    ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();

    IssueBrowsingPane issueBrowsingPane = new IssueBrowsingPane(project, review);
    Content content = contentFactory.createContent(issueBrowsingPane.getContentPane(), buildTableTitle(review), true);
    content.putUserData(RevuKeys.ISSUE_BROWSING_PANE_KEY, issueBrowsingPane);
    toolwindow.getContentManager().addContent(content);
    contentsByReviews.put(review, content);

    checkMessagePane();
View Full Code Here

public class DatabaseBrowserToolWindowFactory implements ToolWindowFactory, DumbAware{
    @Override
    public void createToolWindowContent(Project project, ToolWindow toolWindow) {
        BrowserToolWindowForm toolWindowForm = DatabaseBrowserManager.getInstance(project).getToolWindowForm();
        ContentFactory contentFactory = new ContentFactoryImpl();
        Content content = contentFactory.createContent(toolWindowForm.getComponent(), null, false);
        toolWindow.getContentManager().addContent(content);
        toolWindow.setIcon(Icons.WINDOW_DATABASE_BROWSER);
    }
View Full Code Here

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

TOP

Related Classes of com.intellij.ui.content.ContentFactory

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.