setErrorMessage(null);
// Update the status line
if (item != null) {
if (item.getData() instanceof PropertySheetEntry) {
PropertySheetEntry psEntry = (PropertySheetEntry) item.getData();
// For entries, show the description if any, else show the label
String desc = psEntry.getDescription();
if (desc != null && desc.length() > 0) {
setMessage(psEntry.getDescription());
} else {
setMessage(psEntry.getDisplayName());
}
}
else if (item.getData() instanceof PropertySheetCategory) {
PropertySheetCategory psCat = (PropertySheetCategory) item.getData();