if (target == null) return;
    void showMenu(int x, int y)    {        TreePopupMenu menu = view.getPopupMenu();        DataObject target = getDataObject();        String txt = TreePopupMenu.BROWSE;        boolean b = false;        if (target instanceof ImageSummary) {            txt = TreePopupMenu.VIEW;            b = true;        }        menu.setViewText(txt);        menu.setClassifyEnabled(b);        menu.show(this, x, y);    }