Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Consistency problems when custom builder uses ICompilationUnit for externally up
Consistency problems when custom builder uses ICompilationUnit for externally up [message #250256] Tue, 18 December 2007 18:36
Jan Kuehl is currently offline Jan KuehlFriend
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
Previous Topic:'unable to instantiate' exception when loading wizardPage
Next Topic:problem with content assistant
Goto Forum:
  


Current Time: Wed Jul 17 20:44:12 GMT 2024

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

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

Back to the top