Unable to use instance of IEditorPart (Eclipse text editor) in JavaFX application [message #1725817] |
Mon, 07 March 2016 16:34  |
Eclipse User |
|
|
|
I am creating a plugin whereby when a handler is called an instance of IEditorPart is instantiated with the current editor which is the eclipse text editor in this context.
editor = HandlerUtil.getActiveEditor(event);
This instance is passed to a JavaFX application through starting an eclipse job. Before Application.launch() is called there is access to this instance of the eclipse text editor, however, after it is called a null pointer exception occurs when trying to use it.
Does this instance get removed when the JavaFX application enters its life-cycle? Is there anyway to use this instance as it is a vital element in the plugin as I am using tables and when an element of the table is clicked, the eclipse editor is brought into scope and then this element clicked is wrote to the screen.
I am aware the eclipse text editor is SWT therefore there may be complications using both SWT and JavaFX together. Any ideas? I can post full code if the question is too ambiguous.
|
|
|
|
Powered by
FUDForum. Page generated in 0.15592 seconds