Consistency problems when custom builder uses ICompilationUnit for externally up [message #250256] |
Tue, 18 December 2007 18:36 |
Jan Kuehl Messages: 1 Registered: July 2009 |
Junior Member |
|
|
Hi Everyone
Currently I develop a custom builder and got a similiar problem, which is
descripted here:
http://dev.eclipse.org/newslists/news.eclipse.tools.jdt/msg1 8533.html
The problem occurs only for Team > Revert... when the file is opened in
the editor. The status of the method ICompilationUnit.hasResourceChanged()
is true and ICompilationUnit.isConsistent() is true too. If I execute
ICompilationUnit.restore() hasResourceChanged() is changed to false but
the ICompilationUnit contains the old source (before revert) not the new
(after revert).
Because I couldn't found any solution and no solution was given to the
older message I ask you whether a solution exists or not.
OK - there is a "solution" - stop the current thread for about 2 seconds
but this isn't a good way for a builder ;-).
Thanks
Jan Kuehl
|
|
|
Powered by
FUDForum. Page generated in 0.03205 seconds