Interface IViewerUpdater<E>
- Type Parameters:
- E- type of the elements in the updated viewer
public interface IViewerUpdater<E>
A strategy interface for updating the elements in a 
StructuredViewer.
 Many structured viewer classes have similar methods for adding and removing
 elements, few of which are defined in common ancestor classes. This interface
 serves as a universal adapter for updating the elements in a viewer- Since:
- 1.3
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds the elements to the viewer.voidInsert the element into the viewer at the specified position.voidMoves the specified element from the specified old position to the specified new position.voidRemoves the elements from the viewervoidRemove the element from the viewervoidReplace the specified element at the given position with the new element.
- 
Method Details- 
insertInsert the element into the viewer at the specified position.- Parameters:
- element- the element to add
- position- the position of the element
 
- 
removeRemove the element from the viewer- Parameters:
- element- the element to remove
- position- the position of the element
 
- 
replaceReplace the specified element at the given position with the new element.- Parameters:
- oldElement- the element being replaced
- newElement- the element that replaces- oldElement
- position- the position of the element being replaced.
 
- 
moveMoves the specified element from the specified old position to the specified new position. No action is taken if the viewer has a sorter or filter(s).- Parameters:
- element- the element being moved
- oldPosition- the position of the element before it is moved
- newPosition- the position of the element after it is moved
 
- 
addAdds the elements to the viewer.- Parameters:
- elements- the elements to add
 
- 
removeRemoves the elements from the viewer- Parameters:
- elements- the elements to remove
 
 
-