FileDocCategorySizeDatePackage
ConfigureWizard.javaAPI DocAzureus 3.0.3.42663Fri May 11 12:55:44 BST 2007org.gudy.azureus2.ui.swt.config.wizard

ConfigureWizard

public class ConfigureWizard extends org.gudy.azureus2.ui.swt.wizard.Wizard
author
Olivier

Fields Summary
int
upSpeed
int
maxUpSpeed
int
maxActiveTorrents
int
maxDownloads
int
nbUploadsPerTorrent
int
serverTCPListenPort
String
torrentPath
boolean
completed
Constructors Summary
public ConfigureWizard(com.aelitis.azureus.core.AzureusCore azureus_core, boolean modal)

 

   
  
  			
		  
  
    super(azureus_core,"configureWizard.title",modal);
    IWizardPanel panel = new LanguagePanel(this,null);
    try  {
      torrentPath = COConfigurationManager.getDirectoryParameter("General_sDefaultTorrent_Directory");
    } catch(Exception e) {
      torrentPath = ""; 
    }
    this.setFirstPanel(panel);
  
Methods Summary
public voidonClose()

		try {
			if (!completed
					&& !COConfigurationManager.getBooleanParameter("Wizard Completed")) {
				int result = MessageBoxShell.open(this.getWizardWindow(),
						MessageText.getString("wizard.close.confirmation"),
						MessageText.getString("wizard.close.message"), new String[] {
							MessageText.getString("Button.yes"),
							MessageText.getString("Button.no")
						}, 0);

				if (result == 1) {
					COConfigurationManager.setParameter("Wizard Completed", true);
					COConfigurationManager.save();
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}

		super.onClose();