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

📄 dialog.jvt

📁 SWT_designer安装软件
💻 JVT
字号:
import
org.eclipse.jface.dialogs.IDialogConstants
org.eclipse.jface.dialogs.Dialog
org.eclipse.swt.graphics.Point
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Shell

method
	/**
	 * Create the dialog
	 * @param parentShell
	 */
	public %TypeName% (Shell parentShell) {
		super(parentShell);
	}

method
	/**
	 * Create contents of the dialog
	 * @param parent
	 */
	@Override
	protected Control createDialogArea(Composite parent) {
		Composite container = (Composite) super.createDialogArea(parent);
		%SWTContainerLayout%
		return container;
	}

method
	/**
	 * Create contents of the button bar
	 * @param parent
	 */
	@Override
	protected void createButtonsForButtonBar(Composite parent) {
		createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
		createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
	}

method
	/**
	 * Return the initial size of the dialog
	 */
	@Override
    protected Point getInitialSize() {
        return new Point(%DefaultFormSize%);
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -