Problems view not refreshed after generating java class from text model [message #1221751] |
Wed, 18 December 2013 11:06 |
|
Hi,
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
Cheers
Markus
|
|
|
|
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 Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
This sounds like a bug somwehere in the platform (resources) or JDT.
Am 18/12/13 12:06, schrieb Markus Oley:
> Hi,
> 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
> Cheers
> Markus
--
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.04698 seconds