if (saverDialog != null) { saverDialog.close(); saverDialog = null; }
    public void saveInEditor(boolean b)    {        if (model.getState() == DISCARDED)            throw new IllegalStateException(            "This method cannot be invoked in the DISCARDED state.");        if (b) {            model.getEditor().saveData();            model.setEditor(null);            onSelectedDisplay();        } else {            model.setEditor(null);            removeEditor();        }    }