|Re: Problems view not refreshed after generating java class from text model [message #1222369 is a reply to message #1221751]
||Fri, 20 December 2013 08:57
| Sven Efftinge
Registered: July 2009
This sounds like a bug somwehere in the platform (resources) or JDT.|
Am 18/12/13 12:06, schrieb Markus Oley:
> I have some xtext based emf models from which I create java code. When I
> call the builders on Ctrl+S (Auto build activated) the builder is
> started. But the builder results to manipulate java classes.
> When I remove e.g. model elements I could run in an compile error,
> because I used generated java classes, which are not available any more.
> That compile error is a legal situation and I expect it to be shown in
> problems view.
> If I have the file open, where the error occurs, I have an error marker
> in the editor. But neither in navigator nor in problems view this error
> is visible. I have to Resave this java class to trigger a rebuild to
> make this error visible.
> I've added project.getResource().refreshLocal(IResource.DEPTH_INFINITE,
> new NullProgressMonitor()) after running my builder, which doesn't have
> an influence.
> Can you please tell me, what's a clean implementation for this problem?
> Thanks in advance
Need professional support for Xtext or other Eclipse Modeling technologies?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : http://blog.efftinge.de
Powered by FUDForum
. Page generated in 0.01308 seconds