Methods Summary |
---|
public void | addListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
// pass
|
public void | dispose()
mWarningImage.dispose();
|
public org.eclipse.swt.graphics.Image | getColumnImage(java.lang.Object element, int columnIndex)
if (columnIndex == 1) {
if (element instanceof ConfigurableResourceItem) {
ConfigurableResourceItem item = (ConfigurableResourceItem)element;
if (item.hasDefault() == false) {
return mWarningImage;
}
}
}
return null;
|
public java.lang.String | getColumnText(java.lang.Object element, int columnIndex)
switch (columnIndex) {
case 0:
if (element instanceof ResourceType) {
return ((ResourceType)element).getDisplayName();
} else if (element instanceof ResourceItem) {
return ((ResourceItem)element).getName();
} else if (element instanceof ResourceFile) {
return ((ResourceFile)element).getFolder().getConfiguration().toDisplayString();
}
break;
case 1:
if (element instanceof ConfigurableResourceItem) {
ConfigurableResourceItem item = (ConfigurableResourceItem)element;
int count = item.getAlternateCount();
if (count > 0) {
if (item.hasDefault()) {
count++;
}
return String.format("%1$d version(s)", count);
}
} else if (element instanceof IIdResourceItem) {
IIdResourceItem idResource = (IIdResourceItem)element;
if (idResource.isDeclaredInline()) {
return "Declared inline";
}
}
return null;
}
return null;
|
public org.eclipse.swt.graphics.Image | getImage(java.lang.Object element)
// pass
return null;
|
public java.lang.String | getText(java.lang.Object element)
return getColumnText(element, 0);
|
public boolean | isLabelProperty(java.lang.Object element, java.lang.String property)
return false;
|
public void | removeListener(org.eclipse.jface.viewers.ILabelProviderListener listener)
// pass
|