Package org.gudy.azureus2.plugins

Examples of org.gudy.azureus2.plugins.PluginConfig.save()


      state.setMapAttribute( DownloadManagerState.AT_FILE_DOWNLOADED, details );

      if ( persist ){
       
        state.save();
      }
  }

  public void
  saveState()
View Full Code Here


 
      DownloadManagerState    state = download_manager.getDownloadState();
 
      state.setFileLink( from_file, to_link );
 
      state.save();
 
      return( true );
  }

  static abstract class FileSkeleton implements DiskManagerFileInfoHelper {
View Full Code Here

 
            doFileExistenceChecks(this, toChange, download_manager, newStorageType == FileSkeleton.ST_LINEAR || newStorageType == FileSkeleton.ST_REORDER );
 
          } finally {
            dmState.suppressStateSave(false);
            dmState.save();
          }
         
          return modified;
        }
          };
View Full Code Here

      DownloadManagerState  download_manager_state =
        DownloadManagerStateFactory.getDownloadState( to_torrent );

      TorrentUtils.setResumeDataCompletelyValid( download_manager_state );

      download_manager_state.save();
     
      if ( item == null ){
       
        byte[] fingerprint = getFingerPrint();
     
View Full Code Here

      DownloadManagerState  download_manager_state =
        DownloadManagerStateFactory.getDownloadState( torrent );

      TorrentUtils.setResumeDataCompletelyValid( download_manager_state );

      download_manager_state.save();
     
      complete  = true;
     
    }catch( Throwable e ){
     
View Full Code Here

     
      DiskManagerUtil.doFileExistenceChecks(this, toChange, dm_state.getDownloadManager(), true);
     
    } finally {
      dm_state.suppressStateSave(false);
      dm_state.save();
    }
   
    return modified;
  }
}
View Full Code Here

        modBlockButton.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event e) {
                try {
                    PluginConfig config = Plugin.getPluginInterface().getPluginconfig();
                    config.setPluginParameter("Stuffer_Block_Mods",modBlockButton.getSelection());
                    config.save();

                } catch (PluginException e1) {
                    e1.printStackTrace();
                }
            }
View Full Code Here

                    color.dispose();
                    String newColorString = "r"+colorLabel.getBackground().getRed() + "g" + colorLabel.getBackground().getGreen() + "b" + colorLabel.getBackground().getBlue();
                    PluginConfig config = Plugin.getPluginInterface().getPluginconfig();
                    config.setPluginParameter("Stuffer_Block_Mods_Color",newColorString);
                    try {
                        config.save();
                    } catch (PluginException e1) {

                        e1.printStackTrace();
                    }
View Full Code Here

        badBlockButton.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event e) {
                try {
                    PluginConfig config = Plugin.getPluginInterface().getPluginconfig();
                    config.setPluginParameter("Stuffer_Block_Seeder",badBlockButton.getSelection());
                    config.save();

                } catch (PluginException e1) {
                    e1.printStackTrace();
                }
            }
View Full Code Here

                    color.dispose();
                    String newColorString = "r"+colorLabel_bad.getBackground().getRed() + "g" + colorLabel_bad.getBackground().getGreen() + "b" + colorLabel_bad.getBackground().getBlue();
                    PluginConfig config = Plugin.getPluginInterface().getPluginconfig();
                    config.setPluginParameter("Stuffer_Block_Seeder_Color",newColorString);
                    try {
                        config.save();
                    } catch (PluginException e1) {

                        e1.printStackTrace();
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.