Пример #1
0
 @Override
 public boolean isApplicable(AnActionEvent event, final Map<String, Object> _params) {
   return RefactoringUtil.isApplicable(
       RefactoringUtil.getRefactoringByClassName(
           "jetbrains.mps.baseLanguage.refactorings" + "." + "MakeFieldStatic"),
       ((SNode) MapSequence.fromMap(_params).get("target")));
 }
Пример #2
0
 public boolean isApplicable(AnActionEvent event, final Map<String, Object> _params) {
   return RefactoringUtil.isApplicable(
       RefactoringUtil.getRefactoringByClassName(
           "jetbrains.mps.lang.structure.refactorings" + "." + "MovePropertyUp"),
       ((SNode) MapSequence.fromMap(_params).get("target")));
 }