示例#1
0
  @Override
  public void apply() throws ConfigurationException {
    UpdateSettings settings = UpdateSettings.getInstance();

    settings.myPluginHosts.clear();
    settings.myPluginHosts.addAll(myUpdatesSettingsPanel.getPluginsHosts());
  }
示例#2
0
 @Override
 public boolean isModified() {
   if (myUpdatesSettingsPanel == null) {
     return false;
   }
   //noinspection EqualsBetweenInconvertibleTypes
   return !UpdateSettings.getInstance()
       .myPluginHosts
       .equals(myUpdatesSettingsPanel.getPluginsHosts());
 }
示例#3
0
 @Override
 public void reset() {
   myUpdatesSettingsPanel.setPluginHosts(UpdateSettings.getInstance().myPluginHosts);
 }