enabled action for course creator projects only
authorliana.bakradze <liana.bakradze@jetbrains.com>
Tue, 4 Aug 2015 11:09:30 +0000 (14:09 +0300)
committerliana.bakradze <liana.bakradze@jetbrains.com>
Tue, 4 Aug 2015 11:09:30 +0000 (14:09 +0300)
python/educational/course-creator/src/com/jetbrains/edu/coursecreator/actions/CCDeleteAllAnswerPlaceholdersAction.java

index fc8c1211bc003c65dd8e0ba495269346fb823931..68ef87702a4157a41d05f7092baf06f522b84573 100644 (file)
@@ -80,6 +80,9 @@ public class CCDeleteAllAnswerPlaceholdersAction extends DumbAwareAction {
 
   @Override
   public void update(AnActionEvent e) {
+    if (!CCProjectService.setCCActionAvailable(e)) {
+      return;
+    }
     DataContext context = e.getDataContext();
     VirtualFile file = CommonDataKeys.VIRTUAL_FILE.getData(context);
     final Project project = e.getProject();