*/
    public void removeEditor()    {        switch (model.getState()) {            case DISCARDED:            //case SAVE:                 throw new IllegalStateException("This method cannot be " +                        "invoked in the DISCARDED, SAVE state.");        }        Editor editor = model.getEditor();        if (editor != null) {            if (editor.hasDataToSave()) {                IconManager icons = IconManager.getInstance();                EditorSaverDialog d = new EditorSaverDialog(view,                                 icons.getIcon(IconManager.QUESTION));                d.addPropertyChangeListener(                        EditorSaverDialog.SAVING_DATA_EDITOR_PROPERTY,                         controller);                UIUtilities.centerAndShow(d);                return;            }        }        if (editorDialog != null) editorDialog.close();        model.setEditorType(NO_EDITOR);        view.removeAllFromWorkingPane();        firePropertyChange(REMOVE_EDITOR_PROPERTY, Boolean.FALSE, Boolean.TRUE);    }