This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grammar io.typefox.examples.theia.states.States with org.eclipse.xtext.common.Terminals | |
generate states "http://www.typefox.io/examples/theia/states/States" | |
StateMachine: | |
'statemachine' name=ID | |
(states+=State | events+=Event)*; | |
State: | |
'state' name=ID transitions+=Transition*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grammar io.typefox.examples.theia.states.States with org.eclipse.xtext.common.Terminals | |
generate states "http://www.typefox.io/examples/theia/states/States" | |
StateMachine: | |
'statemachine' name=ID | |
(states+=State | events+=Event)*; | |
State: | |
'state' name=ID transitions+=Transition*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread [JavaFX Application Thread] (Suspended (exception ArrayIndexOutOfBoundsException)) | |
ArrayList<E>.elementData(int) line: 418 | |
ArrayList<E>.get(int) line: 431 | |
Parent$1(ObservableListWrapper<E>).get(int) line: 89 | |
Parent$2(VetoableListDecorator<E>).get(int) line: 306 | |
6 RectangleBorderPane(Parent).updateCachedBounds(List<Node>, int) line: 1579 | |
6 RectangleBorderPane(Parent).recomputeBounds() line: 1523 | |
6 RectangleBorderPane(Parent).impl_computeGeomBounds(BaseBounds, BaseTransform) line: 1374 | |
6 RectangleBorderPane(Region).impl_computeGeomBounds(BaseBounds, BaseTransform) line: 3022 | |
6 RectangleBorderPane(Node).updateGeomBounds() line: 3552 [local variables unavailable] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Inject IURIEditorOpener editorOpener | |
... | |
selectionListener = [ event | | |
val selection = event.selection as IStructuredSelection | |
if(selection.size == 1) { | |
val selectedElement = selection.firstElement | |
if(selectedElement instanceof URI) | |
editorOpener.open(selectedElement, true) | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ShowInViewHandler extends AbstractHandler { | |
@Inject EObjectAtOffsetHelper eObjectAtOffsetHelper | |
override Object execute(ExecutionEvent event) | |
throws ExecutionException { | |
val editor = EditorUtils.getActiveXtextEditor(event) | |
if (editor != null) { | |
val selection = editor.selectionProvider.selection | |
as ITextSelection |