putValue(Action.NAME, NAME_DATASET);
name = NAME_DATASET;
    protected void onDisplayChange(TreeImageDisplay selectedDisplay)    {        if (selectedDisplay == null) {            setEnabled(false);            putValue(Action.NAME, NAME);             putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION));            return;        }        Object ho = selectedDisplay.getUserObject();        if (ho instanceof String) { // root                setEnabled(false);                putValue(Action.NAME, NAME);                  putValue(Action.SHORT_DESCRIPTION,                         UIUtilities.formatToolTipText(DESCRIPTION));        } else if (ho instanceof ProjectData) {            setEnabled(model.isObjectWritable((DataObject) ho));            putValue(Action.NAME, NAME_DATASET);             nodeType = CreateCmd.DATASET;            putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION_DATASET));        } else if (ho instanceof CategoryGroupData) {            setEnabled(model.isObjectWritable((DataObject) ho));            putValue(Action.NAME, NAME_CATEGORY);            putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION_CATEGORY));            nodeType = CreateCmd.CATEGORY;        } else if (ho instanceof CategoryData) {            setEnabled(model.isObjectWritable((DataObject) ho));            setEnabled(false); //TODO: remove when import            putValue(Action.NAME, NAME_IMAGE);            putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION_IMAGE));        } else if (ho instanceof DatasetData) {            setEnabled(model.isObjectWritable((DataObject) ho));            setEnabled(false);            putValue(Action.NAME, NAME_IMAGE);            putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION_IMAGE));        } else {            setEnabled(false);            putValue(Action.NAME, NAME);            putValue(Action.SHORT_DESCRIPTION,                     UIUtilities.formatToolTipText(DESCRIPTION));        }        name = (String) getValue(Action.NAME);    }