use of com.intellij.ui.content.ContentManager in project google-cloud-intellij by GoogleCloudPlatform.
the class GcsToolWindowFactory method createToolWindowContent.
@Override
public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindow toolWindow) {
GcsToolWindowPanel gcsToolWindowPanel = new GcsToolWindowPanel(project);
ContentManager contentManager = toolWindow.getContentManager();
Content content = contentManager.getFactory().createContent(gcsToolWindowPanel, null, /*displayName*/
false);
contentManager.addContent(content);
}
use of com.intellij.ui.content.ContentManager in project intellij-plugins by StepicOrg.
the class StudyToolWindowFactory method createToolWindowContent.
@Override
public void createToolWindowContent(@NotNull final Project project, @NotNull final ToolWindow toolWindow) {
toolWindow.setIcon(AllStepikIcons.stepikLogoSmall);
if (!StepikProjectManager.isStepikProject(project)) {
logger.warn("Study Tool Window did not create");
return;
}
final StudyToolWindow studyToolWindow = new StudyToolWindow();
studyToolWindow.init(project);
final ContentManager contentManager = toolWindow.getContentManager();
final Content content = contentManager.getFactory().createContent(studyToolWindow, null, false);
contentManager.addContent(content);
Disposer.register(project, studyToolWindow);
logger.info("Study Tool Window is created");
}
Aggregations