|Exceptions when opening linked resource [message #758552]
||Wed, 23 November 2011 16:13
| John J. Camilleri
Registered: November 2011
My DSL extension is .gf|
I want to open a .gf file which is external to the workspace in my plugin. When I try this naively via the File -> Open menu I get the following:
!ENTRY org.apache.log4j 4 0 2011-11-23 09:52:18.914
!MESSAGE org.eclipse.xtext.ui.editor.CompoundXtextEditorCallback - Was configured with another client or not configured at all.
java.lang.IllegalStateException: Was configured with another client or not configured at all.
I managed to partially get around the problem by creating resource links within my project to these external resources, as explained here in the Eclipse documentation.
This works pretty well, the external files are opened, syntax highlighting works and the LanguageSpecificURIEditorOpener.selectAndReveal() method even correctly highlights the referenced identifier.
However I keep getting the following exception which annoying pops up in the client application each time one of these linked files is opened:
!ENTRY org.eclipse.core.jobs 4 2 2011-11-23 16:50:39.343
!MESSAGE An internal error occurred during: "Xtext validation".
From my understanding this case is simply not handled. All I really want to do is suppress the exception but I'm not ever sure where I would be able to do this.
Any ideas how I could overcome this?
[Updated on: Thu, 24 November 2011 10:59]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03736 seconds