problems view refresh problem [message #285681] |
Mon, 23 May 2005 08:26 |
Eclipse User |
|
|
|
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);
}
});
|
|
|
Powered by
FUDForum. Page generated in 0.02774 seconds