📄 versiondialog.java
字号:
/*
* Created on 2004-8-18
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package com.gctech.smsmanage;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Label;
/**
* <p>Title:</p>
* <p>Description:</p>
* <p>Copyright: Copyright (c) Gctech 2004-8-18</p>
* <p>Company: 吉芙德资讯有限公司</p>
*
* @version 1.0
* @author liyi
*
*/
public class VersionDialog extends Dialog {
public VersionDialog(Shell parentShell) {
super(parentShell);
}
protected Control createDialogArea(Composite parent) {
Composite container = (Composite) super.createDialogArea(parent);
final GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 2;
container.setLayout(gridLayout);
{
final Label label = new Label(container, SWT.NONE);
final GridData gridData = new GridData();
gridData.horizontalSpan = 2;
label.setLayoutData(gridData);
label.setText("短信管理平台");
}
{
final Label label = new Label(container, SWT.NONE);
label.setText("版本:");
}
{
final Label label = new Label(container, SWT.NONE);
label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
label.setText("0.1");
}
{
final Label label = new Label(container, SWT.NONE);
final GridData gridData = new GridData();
gridData.horizontalSpan = 2;
label.setLayoutData(gridData);
label.setText("(c) Copyright GCTech corp.");
}
{
final Label label = new Label(container, SWT.NONE);
label.setText("Author:");
}
{
final Label label = new Label(container, SWT.NONE);
label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
label.setText("liyi");
}
{
final Label label = new Label(container, SWT.NONE);
label.setText("Email:");
}
{
final Label label = new Label(container, SWT.NONE);
label.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER));
label.setText("ly@gctech.com.cn");
}
//
return container;
}
protected void createButtonsForButtonBar(Composite parent) {
createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
}
protected void configureShell(Shell newShell) {
super.configureShell(newShell);
newShell.setText("About SMS Manager");
}
protected Point getInitialSize() {
return new Point(300, 200);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -