Methods Summary |
---|
public void | addListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
// pass
|
public void | dispose()
// pass
|
public org.eclipse.swt.graphics.Image | getImage(java.lang.Object element)Returns the element's logo with a fallback on the android logo.
ElementDescriptor desc = null;
if (element instanceof ElementDescriptor) {
Image img = ((ElementDescriptor) element).getIcon();
if (img != null) {
return img;
}
} else if (element instanceof UiElementNode) {
UiElementNode node = (UiElementNode) element;
desc = node.getDescriptor();
if (desc != null) {
Image img = desc.getIcon();
if (img != null) {
if (node.hasError()) {
//TODO: cache image
return new ErrorImageComposite(img).createImage();
} else {
return img;
}
}
}
}
return AdtPlugin.getAndroidLogo();
|
public java.lang.String | getText(java.lang.Object element)Uses UiElementNode.shortDescription for the label for this tree item.
if (element instanceof ElementDescriptor) {
ElementDescriptor desc = (ElementDescriptor) element;
return desc.getUiName();
} else if (element instanceof UiElementNode) {
UiElementNode node = (UiElementNode) element;
return node.getShortDescription();
}
return element.toString();
|
public boolean | isLabelProperty(java.lang.Object element, java.lang.String property)
// pass
return false;
|
public void | removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
// pass
|