📄 sdf.java
字号:
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 自动生成方法存根
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 ();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -