EDU-543 IAE in StudyBrowser if several projects opened
[idea/community.git] / python / educational-core / student / src / com / jetbrains / edu / learning / ui / StudyToolWindow.java
index f9ebe579e376893d97b04b9e2b26e44d0c762a35..c03a621624e7e5fd616c85b487cfabe741e7e1d5 100644 (file)
@@ -63,7 +63,7 @@ public abstract class StudyToolWindow extends SimpleToolWindowPanel implements D
     JPanel toolbarPanel = createToolbarPanel(project);
     setToolbar(toolbarPanel);
 
-    myContentPanel.add(TASK_INFO_ID, createTaskInfoPanel(taskText));
+    myContentPanel.add(TASK_INFO_ID, createTaskInfoPanel(taskText, project));
     mySplitPane.setFirstComponent(myContentPanel);
     addAdditionalPanels(project);
     myCardLayout.show(myContentPanel, TASK_INFO_ID);
@@ -138,7 +138,7 @@ public abstract class StudyToolWindow extends SimpleToolWindowPanel implements D
     return null;
   }
   
-  public abstract JComponent createTaskInfoPanel(String taskText);
+  public abstract JComponent createTaskInfoPanel(String taskText, Project project);
 
   private static JPanel createToolbarPanel(@NotNull final Project project) {
     final DefaultActionGroup group = getActionGroup(project);