Ejemplo n.º 1
0
 private void execute_internal(
     final KeyEvent keyEvent,
     final EditorContext editorContext,
     final SNode node,
     final List<SNode> selectedNodes) {
   SNode propertyMacro = QueriesUtil.addPropertyMacro(node, editorContext.getSelectedCell());
   // set caret
   editorContext.selectAndSetCaret(propertyMacro, 0);
   EditorInspector inspector = editorContext.getInspector();
   assert inspector != null;
   inspector.activate();
 }
Ejemplo n.º 2
0
 private void execute_internal(
     final KeyEvent keyEvent,
     final EditorContext editorContext,
     final SNode node,
     final List<SNode> selectedNodes) {
   SNode referenceMacro =
       QueriesUtil.addReferenceMacro(
           node, (jetbrains.mps.nodeEditor.cells.EditorCell) editorContext.getSelectedCell());
   // set caret
   editorContext.selectAndSetCaret(referenceMacro, 2);
   EditorInspector inspector = editorContext.getInspector();
   assert inspector != null;
   inspector.activate();
 }