} else if (source instanceof ClipBoard) { switch (model.getState()) { case ClipBoard.EDIT_ANNOTATIONS: case ClipBoard.LOADING_ANNOTATIONS: model.getLoadingWin().setOnScreen(); break; case ClipBoard.ANNOTATIONS_READY: case ClipBoard.DISCARDED_ANNOTATIONS: model.getLoadingWin().setClosed(true); break; }
    public void stateChanged(ChangeEvent ce)    {        Object source = ce.getSource();        if (source instanceof HiViewer) {            HiViewer parentModel = model.getParentModel();            if (parentModel.getState() == HiViewer.READY) {                parentModel.getBrowser().addPropertyChangeListener(                        Browser.SELECTED_DISPLAY_PROPERTY, this);                view.initListener();            }          }    }