Search in sources :

Example 1 with StudyToolWindowFactory

use of org.stepik.core.ui.StudyToolWindowFactory in project intellij-plugins by StepicOrg.

the class StudyUtils method initToolWindows.

static void initToolWindows(@NotNull final Project project) {
    final ToolWindowManager windowManager = ToolWindowManager.getInstance(project);
    windowManager.getToolWindow(StudyToolWindowFactory.STUDY_TOOL_WINDOW).getContentManager().removeAllContents(false);
    StudyToolWindowFactory factory = new StudyToolWindowFactory();
    factory.createToolWindowContent(project, windowManager.getToolWindow(StudyToolWindowFactory.STUDY_TOOL_WINDOW));
}
Also used : StudyToolWindowFactory(org.stepik.core.ui.StudyToolWindowFactory) ToolWindowManager(com.intellij.openapi.wm.ToolWindowManager)

Aggregations

ToolWindowManager (com.intellij.openapi.wm.ToolWindowManager)1 StudyToolWindowFactory (org.stepik.core.ui.StudyToolWindowFactory)1