EDU-488 Make "Unpack course" action available from "Find action" clion/142.5119
authorliana.bakradze <liana.bakradze@jetbrains.com>
Thu, 24 Sep 2015 11:58:09 +0000 (14:58 +0300)
committerliana.bakradze <liana.bakradze@jetbrains.com>
Thu, 24 Sep 2015 12:01:14 +0000 (15:01 +0300)
python/educational/course-creator/resources/META-INF/plugin.xml
python/educational/course-creator/src/com/jetbrains/edu/coursecreator/actions/CCFromCourseArchive.java

index 465152f88aa4232a03f7719f8749464919fd6f9c..672d7c6f3ed7208b1a90cf577a795e437c3cf7ce 100644 (file)
       <add-to-group group-id="ProjectViewPopupMenu" anchor="before" relative-to-action="CutCopyPasteGroup"/>
       <add-to-group group-id="FileMenu" relative-to-action="FileMainSettingsGroup" anchor="before"/>
     </action>
-    <action id="UnpackCourse" class="com.jetbrains.edu.coursecreator.actions.CCFromCourseArchive">
-      <add-to-group group-id="ProjectViewPopupMenu" anchor="before" relative-to-action="CutCopyPasteGroup"/>
-      <add-to-group group-id="FileMenu" relative-to-action="FileMainSettingsGroup" anchor="before"/>
-    </action>
+    <action id="UnpackCourse" class="com.jetbrains.edu.coursecreator.actions.CCFromCourseArchive"/>
     <action id="PushLesson" class="com.jetbrains.edu.coursecreator.actions.CCPushLesson">
       <add-to-group group-id="ProjectViewPopupMenu" anchor="before" relative-to-action="CutCopyPasteGroup"/>
       <add-to-group group-id="FileMenu" relative-to-action="FileMainSettingsGroup" anchor="before"/>
index a94fc12a25c155eb912fe2b17fab73f7a015775a..4b524f2a49ddf13cb4b5624391c162d12897d0cc 100644 (file)
@@ -40,12 +40,6 @@ public class CCFromCourseArchive extends DumbAwareAction {
     super("Unpack Course Archive", "Unpack Course Archive", AllIcons.FileTypes.Archive);
   }
 
-  @Override
-  public void update(@NotNull AnActionEvent e) {
-    e.getPresentation().setEnabledAndVisible(false);
-    //CCProjectService.setCCActionAvailable(e);
-  }
-
   @Override
   public void actionPerformed(@NotNull AnActionEvent e) {
     final Project project = e.getData(CommonDataKeys.PROJECT);