📄 ipwmodepanel.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: IPWModePanel.java
package org.gudy.azureus2.ui.swt.pluginsinstaller;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.*;
import org.gudy.azureus2.core3.config.COConfigurationManager;
import org.gudy.azureus2.core3.internat.MessageText;
import org.gudy.azureus2.ui.swt.Messages;
import org.gudy.azureus2.ui.swt.wizard.*;
// Referenced classes of package org.gudy.azureus2.ui.swt.pluginsinstaller:
// IPWFilePanel, IPWListPanel, InstallPluginWizard
public class IPWModePanel extends AbstractWizardPanel
{
private static final int MODE_FROM_LIST = 0;
private static final int MODE_FROM_FILE = 1;
private int mode;
public IPWModePanel(Wizard wizard, IWizardPanel previous)
{
AbstractWizardPanel(wizard, previous);
mode = 0;
}
public void show()
{
int userMode = COConfigurationManager.getIntParameter("User Mode");
wizard.setTitle(MessageText.getString("installPluginsWizard.mode.title"));
wizard.setErrorMessage("");
Composite rootPanel = wizard.getPanel();
GridLayout layout = new GridLayout();
layout.numColumns = 1;
rootPanel.setLayout(layout);
Composite panel = new Composite(rootPanel, 0);
GridData gridData = new GridData(1812);
panel.setLayoutData(gridData);
layout = new GridLayout();
layout.numColumns = 1;
panel.setLayout(layout);
Button bListMode = new Button(panel, 16);
Messages.setLanguageText(bListMode, "installPluginsWizard.mode.list");
bListMode.setData("mode", new Integer(0));
if (((InstallPluginWizard)wizard).mode == 0)
bListMode.setSelection(true);
Button bFileMode = new Button(panel, 16);
Messages.setLanguageText(bFileMode, "installPluginsWizard.mode.file");
bFileMode.setData("mode", new Integer(1));
if (((InstallPluginWizard)wizard).mode == 1)
bFileMode.setSelection(true);
Listener modeListener = new Listener() ;
bListMode.addListener(13, modeListener);
bFileMode.addListener(13, modeListener);
if (userMode < 2)
{
Group cWiki = new Group(panel, 64);
cWiki.setText(MessageText.getString("installPluginsWizard.installMode.info.title"));
gridData = new GridData(772);
gridData.verticalIndent = 15;
cWiki.setLayoutData(gridData);
layout = new GridLayout();
layout.numColumns = 4;
layout.marginHeight = 0;
cWiki.setLayout(layout);
gridData = new GridData(772);
gridData.horizontalIndent = 10;
gridData.horizontalSpan = 4;
Label label = new Label(cWiki, 64);
label.setLayoutData(gridData);
label.setText(MessageText.getString("installPluginsWizard.installMode.info.text"));
}
}
public IWizardPanel getNextPanel()
{
switch (mode)
{
case 0: // '\0'
return new IPWListPanel(wizard, this);
case 1: // '\001'
return new IPWFilePanel(wizard, this);
}
return null;
}
public boolean isNextEnabled()
{
return true;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -