소스 검색

restrict action to code-from-ds.json

develop
Robin Thoni 7 년 전
부모
커밋
b799502f2d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/com/rthoni/intellij/codefromds/ui/actions/GenerateAction.java

+ 1
- 1
src/com/rthoni/intellij/codefromds/ui/actions/GenerateAction.java 파일 보기

@@ -66,7 +66,7 @@ public class GenerateAction extends AnAction {
66 66
         }
67 67
         else {
68 68
             final VirtualFile file = CommonDataKeys.VIRTUAL_FILE.getData(e.getDataContext());
69
-            e.getPresentation().setVisible(file != null && file.getName().endsWith(".json"));
69
+            e.getPresentation().setVisible(file != null && file.getName().equals("code-from-ds.json"));
70 70
         }
71 71
     }
72 72
 }

Loading…
취소
저장