@Override public synchronized void save() throws IOException { if (BulkChange.contains(this)) { return; } configFile.write(this); SaveableListener.fireOnChange(this, configFile); }
/** * Saves the configuration info to the disk. */ public synchronized void save() { if(BulkChange.contains(this)) return; try { getConfigFile().write(this); SaveableListener.fireOnChange(this, getConfigFile()); } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to save "+getConfigFile(),e); } }
@Override public void save() throws IOException { if(BulkChange.contains(this)) return; getConfigFile().write(this); SaveableListener.fireOnChange(this, getConfigFile()); }
/** * Gets instance of this extension. * * @return the instance of this extension. */ public static SaveableListenerImpl get() { return SaveableListener.all().get(SaveableListenerImpl.class); }