Package com.intellij.ui.content

Examples of com.intellij.ui.content.Content


  {
    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);

    checkMessagePane();
View Full Code Here


    return issueBrowsingPane;
  }

  private void removeReviewTab(@NotNull Review review)
  {
    Content content = contentsByReviews.remove(review);
    if (content != null)
    {
      toolwindow.getContentManager().removeContent(content, true);
    }
View Full Code Here

  }

  @Nullable
  public IssueBrowsingPane getSelectedReviewBrowsingForm()
  {
    Content selectedContent = toolwindow.getContentManager().getSelectedContent();

    return (selectedContent != null) ? selectedContent.getUserData(RevuKeys.ISSUE_BROWSING_PANE_KEY) : null;
  }
View Full Code Here

    {
      removeReviewTab(review);
    }
    else
    {
      Content content = contentsByReviews.get(review);
      if (content == null)
      {
        addReviewTab(review);
      }
      else
      {
        content.setDisplayName(buildTableTitle(review));
        // @TODO how to refresh tab title ?
        IssueBrowsingPane pane = content.getUserData(RevuKeys.ISSUE_BROWSING_PANE_KEY);
        if (pane != null)
        {
          pane.updateReview();
        }
      }
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

        }

        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

    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().goPreviousOccurence();
    }

  }
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.hasPreviousOccurence();
        presentation.setEnabled(toolWindow.isAvailable() && isEnabled());
        presentation.setVisible(true);
      }
View Full Code Here

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());
    registerEventListener(project);

    // toggle value
    final Content content = toolWindow.getContentManager().getContent(0);
    if (content != null) {
      final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
      final String groupByProperty = preferences.getProperty(FindBugsPreferences.TOOLWINDOW_GROUP_BY, GroupBy.BugCategory.name());

      final boolean equals = GroupBy.BugCategory.name().equals(groupByProperty);
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      final GroupBy[] sortOrderGroup = GroupBy.getSortOrderGroup(GroupBy.BugCategory);
      if(equals && !Arrays.equals(panel.getBugTreePanel().getGroupBy(), sortOrderGroup)) {
        panel.getBugTreePanel().setGroupBy(sortOrderGroup);
      }
      return equals;
View Full Code Here

    }

    final ToolWindow toolWindow = ToolWindowManager.getInstance(project).getToolWindow(getPluginInterface(project).getInternalToolWindowId());

    // toggle value
    final Content content = toolWindow.getContentManager().getContent(0);
    if (content != null) {
      final ToolWindowPanel panel = (ToolWindowPanel) content.getComponent();
      final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
      if (selected) {
        preferences.setProperty(FindBugsPreferences.TOOLWINDOW_GROUP_BY, GroupBy.BugCategory.name());
        panel.getBugTreePanel().setGroupBy(GroupBy.getSortOrderGroup(GroupBy.BugCategory));
      }
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.