|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLabelProvider
com.ibm.etools.systems.core.ui.view.SystemViewLabelAndContentProvider
Provides tree contents for objects that have the ISystemViewElement adapter registered. Also provides label contents, so can be used for both a content and label provider for TreeViewers.
This has a general flavour, which is used in most cases, and also has a specialized flavour for universal file systems, which allows restricting the list to files only or folders only. It also allows further subsetting by setting an input filter or filterstring.
Field Summary | |
---|---|
static String |
copyright
|
protected Viewer |
viewer
|
Constructor Summary | |
---|---|
SystemViewLabelAndContentProvider()
Constructor |
|
SystemViewLabelAndContentProvider(boolean foldersOnly,
boolean filesOnly)
Constructor to restrict to remote folders or files |
Method Summary | |
---|---|
void |
cancelJobs(Object location)
Cancel any jobs that are fetching content from the given location. |
protected ImageDescriptor |
decorateImage(ImageDescriptor input,
Object element)
Returns an image descriptor that is based on the given descriptor, but decorated with additional information relating to the state of the provided object. |
protected String |
decorateText(String input,
Object element)
Returns a label that is based on the given label, but decorated with additional information relating to the state of the provided object. |
void |
dispose()
The visual part that is using this content provider is about to be disposed. |
void |
flushCache()
Flush the in-memory cache which remembers the result of the last getChildren request when we are in files-only or folders-only mode. |
protected ISystemViewElementAdapter |
getAdapter(Object o)
Returns the implementation of ISystemViewElement for the given object. |
Object[] |
getChildren(Object element)
|
Image |
getColumnImage(Object element,
int columnIndex)
|
String |
getColumnText(Object element,
int columnIndex)
|
Object[] |
getElements(Object element)
|
String |
getFilterString()
Get the current filter string being used to subset the list by. |
Image |
getImage(Object element)
|
Object |
getParent(Object element)
|
String |
getText(Object element)
Returns the label text for the given object. |
Viewer |
getViewer()
Return the current viewer we are associated with |
boolean |
hasChildren(Object element)
hasChildren method comment. |
void |
inputChanged(Viewer viewer,
Object oldInput,
Object newInput)
inputChanged method comment. |
void |
setFilterString(String filterString)
Set a filter string to subset the list by. |
protected boolean |
supportsDeferredQueries()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
protected Viewer viewer
Constructor Detail |
public SystemViewLabelAndContentProvider()
public SystemViewLabelAndContentProvider(boolean foldersOnly, boolean filesOnly)
Method Detail |
public void setFilterString(String filterString)
public String getFilterString()
public void flushCache()
public Viewer getViewer()
public void dispose()
protected ISystemViewElementAdapter getAdapter(Object o)
public void cancelJobs(Object location)
location
- protected boolean supportsDeferredQueries()
public Object[] getChildren(Object element)
ITreeContentProvider
public Object[] getElements(Object element)
ITreeContentProvider
public Object getParent(Object element)
ITreeContentProvider
public boolean hasChildren(Object element)
public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
public Image getColumnImage(Object element, int columnIndex)
public String getColumnText(Object element, int columnIndex)
public Image getImage(Object element)
public String getText(Object element)
protected ImageDescriptor decorateImage(ImageDescriptor input, Object element)
ImageDescriptor
protected String decorateText(String input, Object element)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |