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)); }
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; }
public void execute(final KeyEvent keyEvent, final EditorContext editorContext) { EditorCell contextCell = editorContext.getContextCell(); this.execute_internal( keyEvent, editorContext, contextCell.getSNode(), this.getSelectedNodes(editorContext)); }