Package com.intellij.ui.content

Examples of com.intellij.ui.content.ContentManager


    public void actionPerformed(AnActionEvent anActionEvent) {
        Project project = ProjectUtil.getProject(anActionEvent);
        ScriptMonkeyPlugin plugin = ScriptMonkeyPlugin.getInstance(project);
        ScriptMonkeyToolWindow toolWindow = plugin.getToolWindow();
        ContentManager contentManager = toolWindow.getContentManager();
        Content content = contentManager.findContent(contentName);
        contentManager.removeContent(content, true);
    }
View Full Code Here


        Content content = ContentFactory.SERVICE.getInstance().createContent(browserPanel, null, false);
        ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);
        ToolWindow toolWindow = toolWindowManager.registerToolWindow(JENKINS_BROWSER, false, ToolWindowAnchor.RIGHT);
        toolWindow.setIcon(JENKINS_ICON);
        ContentManager contentManager = toolWindow.getContentManager();
        contentManager.addContent(content);

        final StatusBar statusBar = WindowManager.getInstance().getStatusBar(project);
        JenkinsWidget jenkinsWidget = JenkinsWidget.getInstance(project);
        statusBar.addWidget(jenkinsWidget);
        jenkinsWidget.install(statusBar);
View Full Code Here

      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);
      contentManager.addContent(content);
      contentManager.setSelectedContent(content);

      final ToolWindow toolWindow = ToolWindowManager.getInstance(module.getProject()).getToolWindow(ToolWindowId.MESSAGES_WINDOW);
      toolWindow.activate(null, true);
    }
View Full Code Here

        this.project = project;
    }

    public void setup(ToolWindowEx toolWindow) {

        ContentManager contentManager = toolWindow.getContentManager();
        Content content = contentManager.getFactory().createContent(new Symfony2SearchForm(this.project).createComponent(), null, true);
        contentManager.addContent(content);
        contentManager.setSelectedContent(content, true);

    }
View Full Code Here

        this.project = project;
    }

    public void setup(ToolWindowEx toolWindow) {

        ContentManager contentManager = toolWindow.getContentManager();
        Content content = contentManager.getFactory().createContent(new Symfony2WebProfilerForm(this.project).createComponent(), null, true);
        contentManager.addContent(content);
        contentManager.setSelectedContent(content, true);

    }
View Full Code Here

import com.intellij.ui.content.ContentManager;
import com.intellij.ui.content.ContentManagerUtil;

public class SayHelloAction extends AnAction {
    public void actionPerformed(AnActionEvent e) {
        ContentManager contentManager = ContentManagerUtil.getContentManagerFromContext(e.getDataContext(), false);
        Application application = ApplicationManager.getApplication();
        HelloWorldApplicationComponent helloWorldComponent =
                application.getComponent(HelloWorldApplicationComponent.class);
        helloWorldComponent.sayHello();
        if (contentManager != null) {
            contentManager.addContent(ContentFactory.SERVICE.getInstance().createContent(helloWorldComponent.createComponent(), "POPS", false));
        }
    }
View Full Code Here

TOP

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

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.