Package com.intellij.ui.content

Examples of com.intellij.ui.content.ContentFactory


        {
            return;
        }
        final ToolWindow toolWindow = ToolWindowManager.getInstance(project).registerToolWindow(TOOLWINDOW_ID, true, ToolWindowAnchor.BOTTOM);

        final ContentFactory contentFactory = toolWindow.getContentManager().getFactory();
        final Content content = contentFactory.createContent(cssToolWindow, "Incoming changes", true);

        toolWindow.getContentManager().addContent(content);
        toolWindow.setAutoHide(false);
        toolWindow.setAvailable(true, null);
View Full Code Here


        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);
            window.setTitle(TITLE);
        }
View Full Code Here

                ConsoleView consoleView = GoCommonConsoleView.consoleView;

                if (window == null) {
                    window = manager.registerToolWindow(GoCommonConsoleView.ID, false, ToolWindowAnchor.BOTTOM);

                    ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
                    Content content = contentFactory.createContent(consoleView.getComponent(), "", false);
                    window.getContentManager().addContent(content);
                    window.setIcon(GoSdkUtil.getProjectIcon(sdk));
                    window.setToHideOnEmptyContent(true);
                }
                window.setTitle(TITLE);
View Full Code Here

    public void initGoToolWindow(final ToolWindow window) {
        window.setToHideOnEmptyContent(true);
        this.window = window;

        ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
        Content content = contentFactory.createContent(consoleViewImpl.getComponent(), "", false);
        window.getContentManager().addContent(content);
    }
View Full Code Here

        }

        if (window == null) {
            window = manager.registerToolWindow(GoCommonConsoleView.ID, false, ToolWindowAnchor.BOTTOM);

            ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
            Content content = contentFactory.createContent(consoleView.getComponent(), "", false);
            window.getContentManager().addContent(content);
            window.setIcon(GoSdkUtil.getProjectIcon(sdk));
            window.setToHideOnEmptyContent(true);
        }
        window.setTitle(TITLE);
View Full Code Here

        ConsoleView consoleView = GoCommonConsoleView.consoleView;

        if (window == null) {
            window = manager.registerToolWindow(GoCommonConsoleView.ID, false, ToolWindowAnchor.BOTTOM);

            ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
            Content content = contentFactory.createContent(consoleView.getComponent(), "", false);
            window.getContentManager().addContent(content);
            window.setIcon(GoSdkUtil.getProjectIcon(sdk));
            window.setToHideOnEmptyContent(true);
        }
        window.setTitle(TITLE);
View Full Code Here

        localTreeActionGroup.add(localDisplayDescriptionAction);
        PopupHandler.installPopupHandler(localViolationsTree, localTreeActionGroup, ActionPlaces.UNKNOWN, ActionManager.getInstance());
        PopupHandler.installPopupHandler(violationsTable, tableTreeChoiceGroup, ActionPlaces.UNKNOWN, ActionManager.getInstance());


        ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
        Content content = contentFactory.createContent(panel, "", false);
        toolWindow.getContentManager().addContent(content);

        SonarProjectComponent projectComponent = project.getComponent(SonarProjectComponent.class);
        ToolWindowModel toolWindowModel = new ToolWindowModel(project, violationTableModel, localTreeModel, projectComponent.getSonarCache());
        projectComponent.setToolWindowModel(toolWindowModel);
View Full Code Here

    ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);

    ToolWindow toolWindow = toolWindowManager.registerToolWindow(TOOL_WINDOW_ID, false, ToolWindowAnchor.RIGHT);
    toolWindow.setIcon(IntelliTracIcons.getInstance().getSmallIcon());

    ContentFactory contentFactory = PeerFactory.getInstance().getContentFactory();
    toolWindowForm = new ToolWindowForm();
    Content content = contentFactory.createContent(toolWindowForm.getRootComponent(), null, false);

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

public class OldHerokuToolWindowFactory implements ToolWindowFactory {

    private final JTabbedPane tabs = new JTabbedPane(1);

    public void createToolWindowContent(Project project, ToolWindow toolWindow) {
        ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
        final HerokuProjectService herokuProjectService = ServiceManager.getService(project,HerokuProjectService.class);
        Content content = contentFactory.createContent(createPanel(herokuProjectService), "", false);
        toolWindow.getContentManager().addContent(content);
    }
View Full Code Here

*/
public class JsLintToolWindowFactory implements ToolWindowFactory{

    public void createToolWindowContent(@NotNull final Project project,@NotNull final ToolWindow toolWindow) {
        JsLinkToolWindow window = new JsLinkToolWindow();
        ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
        Content content = contentFactory.createContent(window.getRootComponent(), "JsLintvalidator", false);
        toolWindow.getContentManager().addContent(content);
    }
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.