public class ShapeTreeLabelProvider
extends org.eclipse.jface.viewers.LabelProvider
Provides the name and icon for shape items in the shape TreeViewer
Constructor and Description |
---|
ShapeTreeLabelProvider() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Image |
getImage(java.lang.Object element)
Returns the image associated with the given element object
|
java.lang.String |
getText(java.lang.Object element)
Returns the name associated with the given element object
|
addListener, dispose, isLabelProperty, removeListener
public org.eclipse.swt.graphics.Image getImage(java.lang.Object element)
Returns the image associated with the given element object
getImage
in interface org.eclipse.jface.viewers.ILabelProvider
getImage
in class org.eclipse.jface.viewers.LabelProvider
element
- An IShape to produce its image
The icon associated with the given IShape element
public java.lang.String getText(java.lang.Object element)
Returns the name associated with the given element object
getText
in interface org.eclipse.jface.viewers.ILabelProvider
getText
in class org.eclipse.jface.viewers.LabelProvider
element
- The ICEObject or AbstractShape to produce its text
The name associated with the element's ICEObject properties