|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectLabelProvider
net.refractions.udig.catalog.ui.ResolveLabelProviderSimple
public class ResolveLabelProviderSimple
Label generation for IResolve (must be non-blocking and quick).
Compare and contrast with ResovleLabelDecorator which is allowed to block.
Constructor Summary | |
---|---|
ResolveLabelProviderSimple()
|
Method Summary | |
---|---|
void |
changed(IResolveChangeEvent event)
|
Image |
getImage(java.lang.Object element)
Obtain image for the provided element. |
java.lang.String |
getText(java.lang.Object element)
Generate text from the resolve.getURI() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResolveLabelProviderSimple()
Method Detail |
---|
public void changed(IResolveChangeEvent event)
public java.lang.String getText(java.lang.Object element)
Note this name is only used as a first try, the ResolveLabelDecorator is expected to provide a label based on Name or Title information.
element
-
public Image getImage(java.lang.Object element)
To accomplish this quickly we simply make use of constants from CatalogUIPlugin. We need a second pass that makes use of the real icon from the real resource.
element
- is expeced to be IResolve
null
if there is no image for
the given objectorg.eclipse.jface.viewers.LabelProvider#getImage(java.lang.Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |