final void superSaveDocument() throws IOException { super.saveDocument(); } final UndoRedo.Manager superUndoRedoManager() {
@Override public void actionPerformed(ActionEvent arg0) { //save changes try { getEditorSupport().saveDocument(); } catch (IOException ex) { LOG.log(Level.WARNING, "File {0} couldn''t be saved.", context.getFacesConfigFile().getName()); } } };
/** Save the document in this thread. * @param parse true if the parser should be started, otherwise false * @param forceSave if true save always, otherwise only when is modified * @exception IOException on I/O error */ private void saveDocument(boolean parse, boolean forceSave) throws IOException { if (forceSave || isModified()) { checkFileEncoding(); super.saveDocument(); if (parse) { TagLibParseSupport sup = (TagLibParseSupport) getDataObject().getCookie(TagLibParseSupport.class); if (sup != null) { sup.prepare(); } } } }
Logger.getLogger("global").log(Level.INFO, null, e); super.saveDocument(); } else { super.saveDocument(); } catch (javax.swing.text.BadLocationException e) { Logger.getLogger("global").log(Level.INFO, null, e);
Logger.getLogger("global").log(Level.INFO, null, e); super.saveDocument(); super.saveDocument();