Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

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
The notifications sent to the element state listeners inform about those standardized, abstract changes. The concrete change applied might differ from the one the listeners are notified about, but should be interpreted as the one the listeners receive.

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:

See Also:
IElementStateListenerExtension

Method Summary
 void 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 Detail

elementDirtyStateChanged

void elementDirtyStateChanged(
Object element,
                              boolean isDirty)
Notifies that the dirty state of the given element has changed.

Parameters:
element - the element
isDirty - the new dirty state

elementContentAboutToBeReplaced

void elementContentAboutToBeReplaced(
Object element)
Notifies that the content of the given element is about to be replaced.

Parameters:
element - the element

elementContentReplaced

void elementContentReplaced(
Object element)
Notifies that the content of the given element has been replaced.

Parameters:
element - the element

elementDeleted

void elementDeleted(
Object element)
Notifies that the given element has been deleted.

Parameters:
element - the element

elementMoved

void elementMoved(
Object originalElement,
                  
Object movedElement)
Notifies that the element has moved. If movedElement is null it is similar to elementDeleted(originalElement).

Parameters:
originalElement - the element before the move
movedElement - the element after the move

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire