📄 sectionpart.jvt
字号:
import
org.eclipse.swt.layout.GridLayout
org.eclipse.swt.widgets.Composite
org.eclipse.ui.forms.SectionPart
org.eclipse.ui.forms.widgets.FormToolkit
org.eclipse.ui.forms.widgets.Section
method
/**
* Create the SectionPart
* @param parent
* @param toolkit
* @param style
*/
public %TypeName%(Composite parent, FormToolkit toolkit, int style) {
super(parent, toolkit, style);
createClient(getSection(), toolkit);
}
method
/**
* Fill the section
*/
private void createClient(Section section, FormToolkit toolkit) {
section.setText("New SectionPart");
Composite container = toolkit.createComposite(section);
%SWTContainerLayout%
section.setClient(container);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -