Package org.eclipse.ui.texteditor
Interface IElementStateListener
public interface IElementStateListener
Interface for parties interested in standardized element changes. These
changes are:
- dirty state changes
- content replacements
- moves
- deletions
In order to provided backward compatibility for clients of
IElementStateListener
, extension interfaces are used to provide
a means of evolution. The following extension interface exists:
IElementStateListenerExtension
since version 2.0 introducing state validation events.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
elementContentAboutToBeReplaced
(Object element) Notifies that the content of the given element is about to be replaced.void
elementContentReplaced
(Object element) Notifies that the content of the given element has been replaced.void
elementDeleted
(Object element) Notifies that the given element has been deleted.void
elementDirtyStateChanged
(Object element, boolean isDirty) Notifies that the dirty state of the given element has changed.void
elementMoved
(Object originalElement, Object movedElement) Notifies that the element has moved.
-
Method Details
-
elementDirtyStateChanged
Notifies that the dirty state of the given element has changed.- Parameters:
element
- the elementisDirty
- the new dirty state
-
elementContentAboutToBeReplaced
Notifies that the content of the given element is about to be replaced.- Parameters:
element
- the element
-
elementContentReplaced
Notifies that the content of the given element has been replaced.- Parameters:
element
- the element
-
elementDeleted
Notifies that the given element has been deleted.- Parameters:
element
- the element
-
elementMoved
Notifies that the element has moved. IfmovedElement
isnull
it is similar toelementDeleted(originalElement)
.- Parameters:
originalElement
- the element before the movemovedElement
- the element after the move
-