} else setEnabled(false);
} else { setEnabled(false); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); } description = (String) getValue(Action.SHORT_DESCRIPTION);
    protected void onDisplayChange(TreeImageDisplay selectedDisplay)    {        if (selectedDisplay == null) {            name = NAME;            putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION));            setEnabled(false);            return;        }        Browser browser = model.getSelectedBrowser();        if (browser == null) {            name = NAME;            putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION));            setEnabled(false);            return;        }         if (browser.getBrowserType() == Browser.IMAGES_EXPLORER) {            name = NAME;            putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION));            setEnabled(false);            return;        }        Object ho = selectedDisplay.getUserObject();         if (ho instanceof ProjectData) {        	name = NAME_ROOT_P;        	putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION_ROOT_P));            setEnabled(model.isObjectWritable((DataObject) ho));        } else if (ho instanceof CategoryGroupData) {            name = NAME_ROOT_CG;            putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION_ROOT_CG));            setEnabled(model.isObjectWritable((DataObject) ho));        } else if (ho instanceof DatasetData) {            name = NAME_PROJECT;            putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION_PROJECT));            setEnabled(model.isObjectWritable((DataObject) ho));        } else if (ho instanceof CategoryData) {            name = NAME_CATEGORYGROUP;            putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION_CATEGORYGROUP));            setEnabled(model.isObjectWritable((DataObject) ho));        } else if (ho instanceof ImageData) {            Object p = selectedDisplay.getParentDisplay().getUserObject();            if (p instanceof DatasetData) {            	name = NAME_DATASET;            	putValue(Action.SHORT_DESCRIPTION,                         UIUtilities.formatToolTipText(DESCRIPTION_DATASET));            } else {            	name = NAME_CATEGORY;            	putValue(Action.SHORT_DESCRIPTION,                         UIUtilities.formatToolTipText(DESCRIPTION_CATEGORY));            }            setEnabled(model.isObjectWritable((DataObject) ho));        } else setEnabled(false);    }