public UsageView getSelectedUsageView() { final Content content = com.intellij.usageView.UsageViewManager.getInstance(myProject).getSelectedContent(); if (content != null) { return content.getUserData(USAGE_VIEW_KEY); } return null; }
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); }