?? errordialog1class.java
字號:
/**
*@author: WangJinTao,MengQingChang2006
*/
package jfaceDialog;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.swt.widgets.Shell;
public class ErrorDialog1Class {
/**
* Launch the application
*
* @param args
*/
public ErrorDialog1Class() {
final Shell shell = new Shell();
Status status = new Status(IStatus.ERROR, "MyPlugin", 0,
"An Error Operate occurred", null);
ErrorDialog errorDialog = new ErrorDialog(shell
, "ErrorDialog實例", "This is ErrorDialog",
status, IStatus.ERROR | IStatus.INFO);
errorDialog.open();
}
public static void main(String[] args) {
new ErrorDialog1Class();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -