/** * Performs the exit editor action and deletes the temporary file.<p> * * @see org.opencms.workplace.editors.CmsEditor#actionExit() */ @Override public void actionExit() throws IOException, JspException, ServletException { if (getAction() == ACTION_CANCEL) { // save and exit was canceled return; } // clear temporary file and unlock resource, if in directedit mode actionClear(false); // close the editor actionClose(); }
/** * Performs the exit editor action and deletes the temporary file.<p> * * @see org.opencms.workplace.editors.CmsEditor#actionExit() */ @Override public void actionExit() throws IOException, JspException, ServletException { if (getAction() == ACTION_CANCEL) { // save and exit was canceled return; } // clear temporary file and unlock resource, if in directedit mode actionClear(false); // close the editor actionClose(); }
/** * @see org.opencms.workplace.editors.CmsEditor#actionSave() */ @Override public void actionSave() throws JspException { try { // save content to temporary file performSaveContent(getParamElementname(), getElementLocale()); // copy the temporary file content back to the original file commitTempFile(); // set the modified parameter setParamModified(Boolean.TRUE.toString()); } catch (CmsException e) { showErrorPage(e); } if (getAction() != ACTION_CANCEL) { // save successful, set save action setAction(ACTION_SAVE); } }
/** * @see org.opencms.workplace.editors.CmsEditor#actionSave() */ @Override public void actionSave() throws JspException { try { // save content to temporary file performSaveContent(getParamElementname(), getElementLocale()); // copy the temporary file content back to the original file commitTempFile(); // set the modified parameter setParamModified(Boolean.TRUE.toString()); } catch (CmsException e) { showErrorPage(e); } if (getAction() != ACTION_CANCEL) { // save successful, set save action setAction(ACTION_SAVE); } }