@Override public void apply() throws ConfigurationException { UpdateSettings settings = UpdateSettings.getInstance(); settings.myPluginHosts.clear(); settings.myPluginHosts.addAll(myUpdatesSettingsPanel.getPluginsHosts()); }
@Override public boolean isModified() { if (myUpdatesSettingsPanel == null) { return false; } //noinspection EqualsBetweenInconvertibleTypes return !UpdateSettings.getInstance() .myPluginHosts .equals(myUpdatesSettingsPanel.getPluginsHosts()); }
@Override public void reset() { myUpdatesSettingsPanel.setPluginHosts(UpdateSettings.getInstance().myPluginHosts); }