Object ho = selectedDisplay.getUserObject(); setEnabled((ho instanceof ImageData) || (ho instanceof DatasetData));
setValuesFor(selectedDisplay.getUserObject());
    protected void onDisplayChange(TreeImageDisplay selectedDisplay)    {        if (selectedDisplay == null) {            setEnabled(false);            return;        }        Browser browser = model.getSelectedBrowser();        if (browser != null) {            if (browser.getSelectedDisplays().length > 1) {            	Object ho = selectedDisplay.getUserObject();                setEnabled((ho instanceof ImageData) ||                 			(ho instanceof DatasetData));                return;            }        }        Object ho = selectedDisplay.getUserObject();        setEnabled((ho instanceof ImageData) || (ho instanceof DatasetData));    }