Package com.intellij.ui.content

Examples of com.intellij.ui.content.Content


      Messages.showWarningDialog("Project not loaded.", "FindBugs");
      return;
    }

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());
    final Content content = toolWindow.getContentManager().getContent(0);
    if (content != null) {
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      final BugTree tree = panel.getBugTreePanel().getBugTree();
      tree.setSelectionRow(0);
      tree.requestFocusInWindow();
      tree.dispatchEvent(new KeyEvent(tree, KeyEvent.KEY_PRESSED, System.currentTimeMillis(), KeyEvent.CTRL_DOWN_MASK, KeyEvent.VK_F, 'F'));
    }
View Full Code Here


    if (findBugsPlugin == null) {
      throw new IllegalStateException("Couldn't get findbugs plugin");
    }

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());
    final Content content = toolWindow.getContentManager().getContent(0);

    if (content != null) {
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      panel.getBugTreePanel().getBugTree().goNextOccurence();
    }

  }
View Full Code Here

        return;
      }

      // enable ?
      final Content content = toolWindow.getContentManager().getContent(0);

      if (content != null) {
        final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
        final BugTree tree = panel.getBugTreePanel().getBugTree();
        _enabled = tree.hasNextOccurence();
        presentation.setEnabled(toolWindow.isAvailable() && isEnabled());
        presentation.setVisible(true);
      }
View Full Code Here

      @Override
      public void run() {
        toolWindow.show(new Runnable() {
          @Override
          public void run() {
            Content content = toolWindow.getContentManager().getFactory().createContent(consoleView.getComponent(), "SonarQube Console", true);
            toolWindow.getContentManager().addContent(content);
          }
        });
      }
    });
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

    }

    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

                String contentName = scriptFile.getName();

                ScriptMonkeyToolWindow toolWindow = scriptMonkeyPlugin.getToolWindow();

                Content content = toolWindow.getContentManager().findContent(contentName);

                ScriptShellPanel panel;
                if (content == null) {
                    RerunScriptAction rerunAction = new RerunScriptAction();
                    StopScriptAction stopScriptAction = new StopScriptAction();
                    CloseScriptConsoleAction closeAction = new CloseScriptConsoleAction(contentName);
                    OpenHelpAction openHelpAction = new OpenHelpAction();

                    AnAction scriptConsoleActions[] = {rerunAction, stopScriptAction, closeAction, openHelpAction};

                    panel = new ScriptShellPanel(commandProcessor, scriptConsoleActions);
                    content = toolWindow.addContentPanel(contentName, panel);
                } else {
                    ScriptShellTabContent tabContent = (ScriptShellTabContent) content.getComponent();
                    panel = tabContent.getScriptShellPanel();
                    panel.toggleActions();
                }
                commandProcessor.addGlobalVariable("window", panel);
                panel.clear();
View Full Code Here

    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

        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

  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

TOP

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

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.