public void closeEditor() {

        if (m_saveButton != null) {
            if (m_saveButton.isEnabled()) {
                CmsConfirmDialog dialog = new CmsConfirmDialog(
                    org.opencms.gwt.client.Messages.get().key(org.opencms.gwt.client.Messages.GUI_DIALOG_RESET_TITLE_0),
                    Messages.get().key(Messages.GUI_CONFIRM_LEAVING_EDITOR_0));
                dialog.setHandler(new I_CmsConfirmDialogHandler() {

                    public void onClose() {

                        cancelEdit();
                    }

                    public void onOk() {

                        saveAndExit();
                    }
                });
                dialog.center();
            } else {
                cancelEdit();
            }
        }
    }
public void closeEditor ( ) { if ( m_saveButton != null ) { if ( m_saveButton . isEnabled ( ) ) { CmsConfirmDialog dialog = new CmsConfirmDialog ( org . opencms . gwt . client . Messages . get ( ) . key ( org . opencms . gwt . client . Messages . GUI_DIALOG_RESET_TITLE_0 ) , Messages . get ( ) . key ( Messages . GUI_CONFIRM_LEAVING_EDITOR_0 ) ) ; dialog . setHandler ( new I_CmsConfirmDialogHandler ( ) { public void onClose ( ) { cancelEdit ( ) ; } public void onOk ( ) { saveAndExit ( ) ; } } ) ; dialog . center ( ) ; } else { cancelEdit ( ) ; } } }
Closes the editor.<p>
May be used from outside the editor module.<p>