Skip to main content



      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 15:35 Go to next message
Eclipse UserFriend
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] Wed, 08 April 2009 22:44 Go to previous message
Eclipse UserFriend
"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 Apr 24 09:38:11 EDT 2025

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

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

Back to the top