A new action Copy Cell Reference is available in the editor menu in Language Debug that creates a reference to the current select editor cell. It can be pasted into the MPS console to debug editor cells. It can be activated through ctrl/cmd+alt+c.
A new action Copy Editor Component Reference is available in the editor menu in Language Debug that creates a reference to the current editor component. It can be pasted into the MPS console to debug editor cells. To refer to the currently opened editor component, use the expression #currentEditorComponent in the MPS console.
Remark: The references stop working when the corresponding editor is closed or reopened because they use the hashcode of the editor component.
Examples:
#currentEditorComponent.scrollToCell(cellRef@102119)
#print editorComponentRef@52770.getDeepestSelectedCell()
#currentEditorComponent.getSelectedNode().delete()
cellRef@102119 as EditorCell_Property.synchronizeViewWithModel()
cellRef@102119 as EditorCell_Property.getStyle().set(StyleAttributes.BACKGROUND_COLOR, Color.LIGHT_GRAY)
Copy Cell Reference
is available in the editor menu inLanguage Debug
that creates a reference to the current select editor cell. It can be pasted into the MPS console to debug editor cells. It can be activated through ctrl/cmd+alt+c.Copy Editor Component Reference
is available in the editor menu inLanguage Debug
that creates a reference to the current editor component. It can be pasted into the MPS console to debug editor cells. To refer to the currently opened editor component, use the expression#currentEditorComponent
in the MPS console.Remark: The references stop working when the corresponding editor is closed or reopened because they use the hashcode of the editor component.
Examples: