Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » problems view refresh problem
problems view refresh problem [message #285681] Mon, 23 May 2005 08:26
Eclipse UserFriend
Hello,

I am writing a plugin that generates java source files that are then
compiled by jdt.
Everything works fine in the builder (change detection, source file
generation and compilation) except when a compilation error occurs.
In that case, the problems view is not correctly refreshed and seems to
relate to the previously generated source code.
I have tried the refreshLocal on both file and project, add a problem
marker, ... nothing do the refresh (from the plugin view)
The only way to have a correct refresh is the F5 key (either on file or
project).
Maybe something missed from the builder ?

builder extract :

delta.accept(new IResourceDeltaVisitor() {
public boolean visit(IResourceDelta delta)
{
IFile ofile=...; // compute java class name
ByteArrayInputStream bais=...; // obtain java source code
try {
if(ofile.exists()) {
ofile.setContents(bais,IFile.FORCE,null);
}
else {
ensurePathExists(ofile);
ofile.create(bais,true,null);
}
}
catch(Exception e) {
e.printStackTrace();
}
return(true);
}
});
Previous Topic:Finding out Project Classpatch
Next Topic:Export marker with wizard
Goto Forum:
  


Current Time: Tue May 06 21:03:43 EDT 2025

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

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

Back to the top