MarkAsOriginalTypeAction and its containing group dumb-aware as well (IDEA-134036)
authorpeter <peter@jetbrains.com>
Thu, 5 Feb 2015 11:34:35 +0000 (12:34 +0100)
committerpeter <peter@jetbrains.com>
Thu, 5 Feb 2015 11:42:26 +0000 (12:42 +0100)
platform/lang-impl/src/com/intellij/openapi/file/exclude/ui/MarkAsOriginalTypeAction.java
platform/lang-impl/src/com/intellij/openapi/file/exclude/ui/MarkFileGroup.java

index 31800af9266708baa84b1b59d270bd1ea893e06b..c386caf55115a50fca438a2e2b71dc7059584464 100644 (file)
@@ -20,6 +20,7 @@ import com.intellij.openapi.actionSystem.*;
 import com.intellij.openapi.file.exclude.EnforcedPlainTextFileTypeManager;
 import com.intellij.openapi.fileTypes.FileType;
 import com.intellij.openapi.fileTypes.FileTypeManager;
+import com.intellij.openapi.project.DumbAwareAction;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.vfs.VirtualFile;
 
@@ -29,7 +30,7 @@ import java.util.Collection;
 /**
  * @author Rustam Vishnyakov
  */
-public class MarkAsOriginalTypeAction extends AnAction {
+public class MarkAsOriginalTypeAction extends DumbAwareAction {
   @Override
   public void actionPerformed(AnActionEvent e) {
     DataContext dataContext = e.getDataContext();
index 5199c072d98fe9415fc7cd14accbe4832e58f19c..cc8f234df7d66a5f34b07cf14a0ca75d0046f136 100644 (file)
@@ -19,11 +19,12 @@ import com.intellij.openapi.actionSystem.AnActionEvent;
 import com.intellij.openapi.actionSystem.DefaultActionGroup;
 import com.intellij.openapi.actionSystem.Presentation;
 import com.intellij.openapi.file.exclude.EnforcedPlainTextFileTypeManager;
+import com.intellij.openapi.project.DumbAware;
 
 /**
  * @author Rustam Vishnyakov
  */
-public class MarkFileGroup extends DefaultActionGroup {
+public class MarkFileGroup extends DefaultActionGroup implements DumbAware {
   @Override
   public void update(AnActionEvent e) {
     final Presentation presentation = e.getPresentation();