setEnabled(true);
putValue(Action.NAME, BROWSE); setEnabled(model.getSelectedBrowser().getBrowserType() == Browser.IMAGES_EXPLORER);
    protected void onDisplayChange(TreeImageDisplay selectedDisplay)    {        if (selectedDisplay == null) {            setEnabled(false);            return;        }        //if (model.getSelectedBrowser().getBrowserType() ==             //Browser.IMAGES_EXPLORER &&         if (selectedDisplay.getParentDisplay() == null) { //root            setEnabled(true);            return;        }        Object ho = selectedDisplay.getUserObject();        if (ho == null || !(ho instanceof DataObject)) setEnabled(false);        else {            if ((ho instanceof ImageData)) putValue(Action.NAME, VIEW);               else putValue(Action.NAME, BROWSE);            setEnabled(true);        }    }