?? licensekeywizardpage.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.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
public class LicenseKeyWizardPage extends WizardPage {
private Text licenseKeyText;
protected LicenseKeyWizardPage(String pageName) {
super(pageName);
setTitle("License Key");
setDescription("Define your Google API License Key");
}
public void createControl(Composite parent) {
GridLayout pageLayout = new GridLayout();
pageLayout.numColumns = 2;
parent.setLayout(pageLayout);
parent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Label label = new Label(parent, SWT.NONE);
label.setText("License Key:");
licenseKeyText = new Text(parent, SWT.BORDER);
licenseKeyText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
setControl(parent);
}
public Text getLicenseKeyText() {
return licenseKeyText;
}
public void setLicenseKeyText(Text licenseKeyText) {
this.licenseKeyText = licenseKeyText;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -