Beispiel #1
0
  public UsageView getSelectedUsageView() {
    final Content content =
        com.intellij.usageView.UsageViewManager.getInstance(myProject).getSelectedContent();
    if (content != null) {
      return content.getUserData(USAGE_VIEW_KEY);
    }

    return null;
  }
Beispiel #2
0
 private void addContent(UsageViewImpl usageView, UsageViewPresentation presentation) {
   Content content =
       com.intellij
           .usageView
           .UsageViewManager
           .getInstance(myProject)
           .addContent(
               presentation.getTabText(),
               presentation.getTabName(),
               presentation.getToolwindowTitle(),
               true,
               usageView.getComponent(),
               presentation.isOpenInNewTab(),
               true);
   usageView.setContent(content);
   content.putUserData(USAGE_VIEW_KEY, usageView);
 }