?? sdf.java
字號(hào):
package cn.com.javachen.myxml.dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class sdf {
/**
* @param args
*/
public static void main(String[] args) {
// TODO 自動(dòng)生成方法存根
Display display = new Display ();
Shell shell = new Shell(display);
shell.open ();
CreateActivityDialog diag = new CreateActivityDialog(shell);
if (diag.open() == IDialogConstants.OK_ID) {
String str = diag.getTextValue();
System.out.println("main:" + str);
}
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -