?? rootexampler.java
字號:
package com.swtplus.gallery;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
public class RootExampler extends Composite implements IWidgetExampler {
private Label l;
public RootExampler(Composite c) {
super(c, SWT.NONE);
setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
}
public void setExampleArea(Composite area) {
area.setLayout(new GridLayout(1,false));
l = new Label(area,SWT.WRAP);
l.setText("Please select a strategy from the tree.");
GridData gd = new GridData(SWT.CENTER,SWT.TOP,true,false);
gd.verticalIndent = 100;
gd.widthHint = 200;
l.setLayoutData(gd);
area.layout();
}
public void dispose() {
super.dispose();
l.dispose();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -