📄 configurewizard.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: ConfigureWizard.java
package org.gudy.azureus2.ui.swt.config.wizard;
import com.aelitis.azureus.core.AzureusCore;
import org.gudy.azureus2.core3.config.COConfigurationManager;
import org.gudy.azureus2.core3.internat.MessageText;
import org.gudy.azureus2.ui.swt.shells.MessageBoxShell;
import org.gudy.azureus2.ui.swt.wizard.Wizard;
// Referenced classes of package org.gudy.azureus2.ui.swt.config.wizard:
// LanguagePanel
public class ConfigureWizard extends Wizard
{
int upSpeed;
int maxUpSpeed;
int maxActiveTorrents;
int maxDownloads;
int nbUploadsPerTorrent;
int serverTCPListenPort;
private String _dataPath;
private boolean _dataPathChanged;
String torrentPath;
boolean completed;
public ConfigureWizard(AzureusCore azureus_core, boolean modal)
{
super(azureus_core, "configureWizard.title", modal);
upSpeed = 4;
maxUpSpeed = 40;
maxActiveTorrents = 7;
maxDownloads = 5;
nbUploadsPerTorrent = 4;
serverTCPListenPort = COConfigurationManager.getIntParameter("TCP.Listen.Port");
completed = false;
org.gudy.azureus2.ui.swt.wizard.IWizardPanel panel = new LanguagePanel(this, null);
try
{
torrentPath = COConfigurationManager.getDirectoryParameter("General_sDefaultTorrent_Directory");
}
catch (Exception e)
{
torrentPath = "";
}
if (COConfigurationManager.getBooleanParameter("Use default data dir"))
_dataPath = COConfigurationManager.getStringParameter("Default save path");
else
_dataPath = "";
setFirstPanel(panel);
}
public void onClose()
{
try
{
if (!completed && !COConfigurationManager.getBooleanParameter("Wizard Completed"))
{
int result = MessageBoxShell.open(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();
}
protected String getDataPath()
{
return _dataPath;
}
protected void setDataPath(String s)
{
_dataPath = s;
_dataPathChanged = true;
}
protected boolean hasDataPathChanged()
{
return _dataPathChanged;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -