|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.catalog.ui.AbstractResolveContentProvider
public class AbstractResolveContentProvider
Provides a threaded Tree content provider for IResolve.
Responsibilities:
Field Summary | |
---|---|
protected ICatalog |
catalog
Root of this tree, often a ICatalog. |
protected java.util.List<IResolve> |
list
|
protected java.util.Map<IResolve,java.util.List<IResolve>> |
structure
Captures parent child relationships. |
protected Viewer |
viewer
|
Constructor Summary | |
---|---|
AbstractResolveContentProvider()
|
Method Summary | |
---|---|
void |
changed(IResolveChangeEvent event)
Catalog has changed! |
void |
dispose()
|
void |
inputChanged(Viewer newViewer,
java.lang.Object oldInput,
java.lang.Object newInput)
Notifies this content provider that the given viewer's input has been switched to a different element. |
void |
refresh(IResolve resolve)
Called by thread to client code to get the content refreshed. |
void |
update(IResolve resolve)
Update appearance and structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Map<IResolve,java.util.List<IResolve>> structure
Here an IdentityHashMap
is used because the containsKey otherwise doesn't look deep
enough in the object to correctly deal with multilevel services.
protected ICatalog catalog
protected java.util.List<IResolve> list
protected Viewer viewer
Constructor Detail |
---|
public AbstractResolveContentProvider()
Method Detail |
---|
public void changed(IResolveChangeEvent event)
Will only start up a thread to update the structure if:
event
- public void refresh(IResolve resolve)
This call will not update structure, just appearance.
resolve
- public void update(IResolve resolve)
Note: this will spawn a thread to fetch the required information.
resolve
- public void inputChanged(Viewer newViewer, java.lang.Object oldInput, java.lang.Object newInput)
A typical use for this method is registering the content provider as a listener to changes on the new input (using model-specific means), and deregistering the viewer from the old input. In response to these change notifications, the content provider should update the viewer (see the add, remove, update and refresh methods on the viewers).
The viewer should not be updated during this call, as it might be in the process of being disposed.
viewer
- the vieweroldInput
- the old input element, or null
if the viewer did not
previously have an inputnewInput
- the new input element, or null
if the viewer does not have an
inputpublic void dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |