⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 errordialog1class.java

📁 Eclipse SWT/JFace开发实战精解, 随书源代码。
💻 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 + -