Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » compilation error indicator in java editor
compilation error indicator in java editor [message #259476] Wed, 08 April 2009 19:35 Go to next message
Ivy Ho is currently offline Ivy HoFriend
Messages: 1
Registered: July 2009
Junior Member
I have some strange compilation error inside our generated code
complaining about one of the class was not resolved. (in the Java editor
and also the problems view). however, the class exist and if I use F3 ,
the class can be located.
If I explicitly do a Project -Clean in the workspace, the error indicator
will be gone.
(inside our code generate , we already did try {
javaProject.getProject().build(
IncrementalProjectBuilder.INCREMENTAL_BUILD,
new NullProgressMonitor());
} catch (CoreException ce) {
throw new BaseException(ce.getStatus());
}
to recompile all the classes after we generate.
Is there anyway to fix this programatically without performance impact
(e.g do a workspace project clean programatically again).
Thanks
Re: compilation error indicator in java editor [message #259487 is a reply to message #259476] Thu, 09 April 2009 02:44 Go to previous message
Walter Harley is currently offline Walter HarleyFriend
Messages: 847
Registered: July 2009
Senior Member
"Ivy Ho" <ibmway@yahoo.com> wrote in message
news:627710ef3915540f282a6cb31b63214b$1@www.eclipse.org...
>I have some strange compilation error inside our generated code complaining
>about one of the class was not resolved. (in the Java editor and also the
>problems view). however, the class exist and if I use F3 , the class can be
>located.
> If I explicitly do a Project -Clean in the workspace, the error indicator
> will be gone.
> (inside our code generate , we already did try {
> javaProject.getProject().build(
> IncrementalProjectBuilder.INCREMENTAL_BUILD,
> new NullProgressMonitor());
> } catch (CoreException ce) {
> throw new BaseException(ce.getStatus());
> }
> to recompile all the classes after we generate.
> Is there anyway to fix this programatically without performance impact
> (e.g do a workspace project clean programatically again).


How are you generating the code? At what point in the build? That is, are
you using annotation processing, or an extension to compilationParticipant,
or an additional Builder, or ... ?

What version of Eclipse are you using?

What, exactly, is the error you are getting?
Previous Topic:Annotation processing (in Java 1.6 flavour)
Next Topic:How to "setDirty" in the CommonNavigator
Goto Forum:
  


Current Time: Thu Dec 26 14:16:56 GMT 2024

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

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

Back to the top