EDU-255 Change course information: course name in project view is not updated
authorLiana Bakradze <liana.bakradze@jetbrains.com>
Mon, 27 Oct 2014 16:28:54 +0000 (19:28 +0300)
committerLiana Bakradze <liana.bakradze@jetbrains.com>
Mon, 27 Oct 2014 16:28:54 +0000 (19:28 +0300)
python/edu/course-creator/src/org/jetbrains/plugins/coursecreator/actions/CCChangeCourseInfo.java

index ffb777e1a05025e46954fbe5688fae2c5989f0e5..a556cd1113f1374c1dd5c5a1331daeed7ea55f31 100644 (file)
@@ -1,6 +1,7 @@
 package org.jetbrains.plugins.coursecreator.actions;
 
 import com.intellij.ide.IdeView;
+import com.intellij.ide.projectView.ProjectView;
 import com.intellij.ide.util.DirectoryChooserUtil;
 import com.intellij.openapi.actionSystem.AnActionEvent;
 import com.intellij.openapi.actionSystem.CommonDataKeys;
@@ -85,6 +86,7 @@ public class CCChangeCourseInfo extends DumbAwareAction {
       course.setAuthor(panel.getAuthor());
       course.setName(panel.getName());
       course.setDescription(panel.getDescription());
+      ProjectView.getInstance(project).refresh();
     }
   }
 
@@ -93,6 +95,7 @@ public class CCChangeCourseInfo extends DumbAwareAction {
     CCNewProjectPanel myNewProjectPanel;
     public ChangeCourseInfoDialog(@Nullable Project project, CCNewProjectPanel panel) {
       super(project);
+      setTitle("Change Course Information");
       myNewProjectPanel = panel;
       init();
     }