licensekeywizard.java
来自「java实 现的 GOOGLE 搜索很好用?」· Java 代码 · 共 57 行
JAVA
57 行
/*
* Created on 2004-9-10
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.xqtu.google.wizards;
/**
* @author limeiyong
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
import org.eclipse.jface.wizard.Wizard;
public class LicenseKeyWizard extends Wizard {
private static String licenseKey;
private LicenseKeyWizardPage page;
public LicenseKeyWizard() {
super();
this.setWindowTitle("License Key");
}
public boolean performFinish() {
if(page.getLicenseKeyText().getText().equalsIgnoreCase(""))
{
page.setErrorMessage("You must provide a license key.");
page.setPageComplete(false);
return false;
}
else
{
licenseKey = page.getLicenseKeyText().getText();
return true;
}
}
public void addPages() {
page = new LicenseKeyWizardPage("licenseKey");
addPage(page);
}
public static String getLicenseKey() {
return licenseKey;
}
public static void setLicenseKey(String licenseKey) {
LicenseKeyWizard.licenseKey = licenseKey;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?