Procházet zdrojové kódy

restrict action to code-from-ds.json

develop
Robin Thoni před 7 roky
rodič
revize
b799502f2d

+ 1
- 1
src/com/rthoni/intellij/codefromds/ui/actions/GenerateAction.java Zobrazit soubor

66
         }
66
         }
67
         else {
67
         else {
68
             final VirtualFile file = CommonDataKeys.VIRTUAL_FILE.getData(e.getDataContext());
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
 }

Načítá se…
Zrušit
Uložit