Exemplo n.º 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")));
 }
Exemplo n.º 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")));
 }