Copyright (c) 2009 itemis AG (http://www.itemis.eu) and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
An implementation of
can be used to register
a currently edited resource and listen to changes on those resources.
- Sebastian Zarnekow - Initial contribution and API
Mark the given dirty resource as unmanaged. This method may be called even if
manageDirtyState has not been called before. Another dirty resource with the
will not become unmanaged. A call to this method will raise an event.
Announce the dirty state of the given resource. Clients should decide on their own when
to call this method. The dirty state manager will not refuse any announcement
due to incorrect internal state of the resource.
Listeners will be notified about the changed dirty state. It is up to the implementor
to decide about the actual point in time. Implementations are free to collect
various announcement before actually raising an event. Events may be fired in a different
If there is no
resource in the
state manager, the change will be refused and no change will be announced.