|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.viewers.BaseLabelProvider
org.eclipse.jpt.common.ui.jface.DelegatingContentAndLabelProvider
public abstract class DelegatingContentAndLabelProvider
Implementation of IStructuredContentProvider and ILabelProvider that
maintains a collection (Map, actually) of ItemContentProvider
delegates that perform the function of providing content and label information
for each represented item
NB: This class, if used as a label provider *MUST* be used as a content provider
for the same viewer. It may be used as a content provider with a different
label provider, however.
Provisional API: This class is part of an interim API that is still
under development and expected to change significantly before reaching
stability. It is available at this early stage to solicit feedback from
pioneering adopters on the understanding that any code that uses this API
will almost certainly be broken (repeatedly) as the API evolves.
| Method Summary | |
|---|---|
void |
dispose()
Disposes all items |
void |
dispose(java.lang.Object item)
Disposes item |
java.lang.String |
getDescription(java.lang.Object element)
|
java.lang.Object[] |
getElements(java.lang.Object inputElement)
|
org.eclipse.swt.graphics.Image |
getImage(java.lang.Object element)
|
java.lang.String |
getText(java.lang.Object element)
|
void |
inputChanged(org.eclipse.jface.viewers.Viewer structuredViewer,
java.lang.Object oldInput,
java.lang.Object newInput)
|
void |
updateContent(java.lang.Object item)
Update the content for the given item |
void |
updateLabel(java.lang.Object item)
Update the label for the given item |
| Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider |
|---|
addListener, isLabelProperty, removeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider |
|---|
addListener, isLabelProperty, removeListener |
| Method Detail |
|---|
public java.lang.Object[] getElements(java.lang.Object inputElement)
getElements in interface org.eclipse.jface.viewers.IStructuredContentProviderpublic org.eclipse.swt.graphics.Image getImage(java.lang.Object element)
getImage in interface org.eclipse.jface.viewers.ILabelProviderpublic java.lang.String getText(java.lang.Object element)
getText in interface org.eclipse.jface.viewers.ILabelProviderpublic java.lang.String getDescription(java.lang.Object element)
getDescription in interface org.eclipse.ui.navigator.IDescriptionProviderpublic void dispose()
dispose in interface org.eclipse.jface.viewers.IBaseLabelProviderdispose in interface org.eclipse.jface.viewers.IContentProviderdispose in class org.eclipse.jface.viewers.BaseLabelProviderpublic void dispose(java.lang.Object item)
public void inputChanged(org.eclipse.jface.viewers.Viewer structuredViewer,
java.lang.Object oldInput,
java.lang.Object newInput)
inputChanged in interface org.eclipse.jface.viewers.IContentProviderpublic void updateContent(java.lang.Object item)
public void updateLabel(java.lang.Object item)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||