Exemplo n.º 1
0
 public boolean canExecute(final KeyEvent keyEvent, final EditorContext editorContext) {
   EditorCell contextCell = editorContext.getContextCell();
   if ((contextCell == null)) {
     return false;
   }
   SNode contextNode = contextCell.getSNode();
   if (contextNode == null) {
     return false;
   }
   return this.canExecute_internal(
       keyEvent, editorContext, contextNode, this.getSelectedNodes(editorContext));
 }
Exemplo n.º 2
0
 public boolean canExecute(final KeyEvent keyEvent, final EditorContext editorContext) {
   EditorCell contextCell = editorContext.getContextCell();
   if ((contextCell == null)) {
     return false;
   }
   SNode contextNode = contextCell.getSNode();
   if (contextNode == null) {
     return false;
   }
   if (contextNode.isInstanceOfConcept("jetbrains.mps.lang.quotation.structure.Quotation")) {
     return this.canExecute_internal(
         keyEvent, editorContext, contextNode, this.getSelectedNodes(editorContext));
   }
   return false;
 }
Exemplo n.º 3
0
 public void execute(final KeyEvent keyEvent, final EditorContext editorContext) {
   EditorCell contextCell = editorContext.getContextCell();
   this.execute_internal(
       keyEvent, editorContext, contextCell.getSNode(), this.getSelectedNodes(editorContext));
 }