Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Problems view not refreshed after generating java class from text model
Problems view not refreshed after generating java class from text model [message #1221751] Wed, 18 December 2013 11:06 Go to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 301
Registered: July 2009
Location: Germany
Senior Member
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 #1221935 is a reply to message #1221751] Wed, 18 December 2013 18:31 Go to previous messageGo to next message
Markus Oley is currently offline Markus OleyFriend
Messages: 301
Registered: July 2009
Location: Germany
Senior Member
Is this the correct forum or should I post jt to another forum?
Or is this topic already handled?

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 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
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
Re: Problems view not refreshed after generating java class from text model [message #1222571 is a reply to message #1222369] Fri, 20 December 2013 19:52 Go to previous message
Markus Oley is currently offline Markus OleyFriend
Messages: 301
Registered: July 2009
Location: Germany
Senior Member
Hi Sven,.

thank you - guess I will add a new topic in platform forum

Cheers
markus
Previous Topic:Generate artefacts with gradle
Next Topic:Nested annotations using XbaseWithAnnotations
Goto Forum:
  


Current Time: Fri Dec 04 08:17:42 GMT 2020

Powered by FUDForum. Page generated in 0.01308 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top