📄 licensekeywizard.java
字号:
/*
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -