public interface IViewerUpdater
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 viewerModifier and Type | Method and Description |
---|---|
void |
add(Object[] elements)
Adds the elements to the viewer.
|
void |
insert(Object element,
int position)
Insert the element into the viewer at the specified position.
|
void |
move(Object element,
int oldPosition,
int newPosition)
Moves the specified element from the specified old position to the
specified new position.
|
void |
remove(Object[] elements)
Removes the elements from the viewer
|
void |
remove(Object element,
int position)
Remove the element from the viewer
|
void |
replace(Object oldElement,
Object newElement,
int position)
Replace the specified element at the given position with the new element.
|
void insert(Object element, int position)
element
- the element to addposition
- the position of the elementvoid remove(Object element, int position)
element
- the element to removeposition
- the position of the elementvoid replace(Object oldElement, Object newElement, int position)
oldElement
- the element being replacednewElement
- the element that replaces oldElement
position
- the position of the element being replaced.void move(Object element, int oldPosition, int newPosition)
element
- the element being movedoldPosition
- the position of the element before it is movednewPosition
- the position of the element after it is movedvoid add(Object[] elements)
elements
- the elements to addvoid remove(Object[] elements)
elements
- the elements to remove
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.