Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Attaching marker (error decorator) to resource fires IResourceDelta.CHANGED event
Attaching marker (error decorator) to resource fires IResourceDelta.CHANGED event [message #760248] Thu, 01 December 2011 12:02 Go to next message
masha Missing name is currently offline masha Missing name
Messages: 5
Registered: December 2011
Junior Member
There is my problem... when resource file is imported to the workspace it's finds associate projected builder. If builder indicate that this resource is invalid it will attach error decorator to resource and fires file resource change(IResourceDelta.CHANGED). Is there any way so how to differentiate between adding Marker event and actual file change event?
Re: Attaching marker (error decorator) to resource fires IResourceDelta.CHANGED event [message #760352 is a reply to message #760248] Fri, 02 December 2011 00:10 Go to previous messageGo to next message
Satyam Kandula is currently offline Satyam Kandula
Messages: 444
Registered: July 2009
Senior Member
You are probably looking for IResourceDelta#getFlags().
Re: Attaching marker (error decorator) to resource fires IResourceDelta.CHANGED event [message #762879 is a reply to message #760352] Thu, 08 December 2011 14:01 Go to previous message
masha Missing name is currently offline masha Missing name
Messages: 5
Registered: December 2011
Junior Member
thanks, it's works Smile
i used:
IMarkerDelta[] marker = delta.getMarkerDeltas() on the ResourceDeltaVisitor
Previous Topic:How do I export the project with a jar inside?.
Next Topic:Cannot create ast with bindings
Goto Forum:
  


Current Time: Wed Jul 30 05:07:26 EDT 2014

Powered by FUDForum. Page generated in 0.01703 seconds