Esempio 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();
 }
Esempio 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();
 }