}
} else if (propName.equals(DataHandler.CLASSIFIED_PROPERTY)) { if (view.getDataHandler() == null) return; view.discardDataHandler(); }
    public void propertyChange(PropertyChangeEvent pce)    {        String propName = pce.getPropertyName();        if (Browser.POPUP_POINT_PROPERTY.equals(propName)) {            Browser browser = model.getBrowser();            if (browser  == null) return;            ImageDisplay d = browser.getLastSelectedDisplay();            Point p = browser.getPopupPoint();            if (d != null && p != null) view.showPopup(d, p);        } else if (Browser.THUMB_SELECTED_PROPERTY.equals(propName)) {              ImageNode d = (ImageNode) pce.getNewValue();            if (d != null) ThumbWinManager.display(d, model);        } else if (Browser.SELECTED_DISPLAY_PROPERTY.equals(propName)) {        	TreeView treeView = model.getTreeView();        	if (treeView == null) return;         	Browser browser = model.getBrowser();            if (browser  == null) return;        	ImageDisplay d = browser.getLastSelectedDisplay();        	treeView.accept(new SelectedNodeVisitor(treeView, d));         } else if (TreeView.TREE_POPUP_POINT_PROPERTY.equals(propName))  {            TreeView treeView = model.getTreeView();            if (treeView == null) return; //tree shouldn't be null            Point p = treeView.getPopupPoint();            if (p != null) view.showPopup(((JComponent) pce.getNewValue()), p);        } else if (TreeView.CLOSE_PROPERTY.equals(propName)) {            model.showTreeView(false);        } else if (TreeView.TREE_SELECTED_DISPLAY_PROPERTY.equals(propName)) {            TreeView treeView = model.getTreeView();            if (treeView == null) return; //tree shouldn't be null            Browser browser = model.getBrowser();            ImageDisplay img = (ImageDisplay) pce.getNewValue();            if (img != null) {                if (!(img.equals(browser.getLastSelectedDisplay())))                    browser.setSelectedDisplay(img);            } else browser.setSelectedDisplay(img);                    } else if (HiViewer.SCROLL_TO_NODE_PROPERTY.equals(propName)) {            scrollToNode((ImageDisplay) pce.getNewValue());        } else if (Browser.ANNOTATED_NODE_PROPERTY.equals(propName)) {            ImageDisplay n = (ImageDisplay) pce.getNewValue();            model.getClipBoard().setSelectedPane(ClipBoard.ANNOTATION_PANE, n);              model.getBrowser().setSelectedDisplay(n);        } else if (Browser.CLASSIFIED_NODE_PROPERTY.equals(propName)) {            ImageDisplay n = (ImageDisplay) pce.getNewValue();            model.getClipBoard().setSelectedPane(ClipBoard.CLASSIFICATION_PANE,                                                    n);              model.getBrowser().setSelectedDisplay(n);        } else if (Browser.ROLL_OVER_PROPERTY.equals(propName)) {            if (model.isRollOver()) {                ImageDisplay n = (ImageDisplay) pce.getNewValue();                if (n instanceof ImageNode)                    ThumbWinManager.rollOverDisplay((ImageNode) n,                                                 model.getBrowser());                else ThumbWinManager.rollOverDisplay(null, model.getBrowser());            }          } else if (TreeView.REMOVE_ROLL_OVER_PROPERTY.equals(propName) ||        		ClipBoard.REMOVE_ROLL_OVER_PROPERTY.equals(propName)) {            if (model.isRollOver()) {            	ThumbWinManager.rollOverDisplay(null, model.getBrowser());            }          } else if (propName.equals(DataHandler.ANNOTATED_PROPERTY)) {        	if (view.getDataHandler() == null) return;        	//TODO: refresh        	view.discardDataHandler();        }        	    }