本文整理了Java中org.eclipse.ui.forms.widgets.FormToolkit.createTree()
方法的一些代码示例,展示了FormToolkit.createTree()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FormToolkit.createTree()
方法的具体详情如下:
包路径:org.eclipse.ui.forms.widgets.FormToolkit
类名称:FormToolkit
方法名:createTree
[英]Creates a tree widget as a part of the form.
[中]创建树小部件作为表单的一部分。
代码示例
代码示例来源:origin: org.eclipse.egit/ui
protected TreeViewer doCreateTreeViewer(Composite actParent, int style) {
int treeStyle = style | SWT.CHECK | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER;
Tree tree = null;
if (fToolkit != null) {
tree = fToolkit.createTree(actParent, treeStyle);
} else {
tree = new Tree(actParent, treeStyle);
}
checkboxViewer = new CachedCheckboxTreeViewer(tree);
return checkboxViewer;
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
@Override
protected TreeViewer doCreateTreeViewer(Composite parent, int style) {
int treeStyle = style | SWT.CHECK | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER;
Tree tree = null;
if (fToolkit != null) {
tree = fToolkit.createTree(parent, treeStyle);
} else {
tree = new Tree(parent, treeStyle);
}
checkboxViewer = new CachedCheckboxTreeViewer(tree);
return checkboxViewer;
}
代码示例来源:origin: org.apache.uima/uimaj-ep-configurator
/**
* New tree.
*
* @param parent the parent
* @return the tree
*/
protected Tree newTree(Composite parent) {
Tree tree = toolkit.createTree(parent, SWT.SINGLE);
tree.setLayoutData(new GridData(GridData.FILL_BOTH));
tree.addListener(SWT.Selection, this);
tree.addListener(SWT.KeyUp, this);
return tree;
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
comp.setLayoutData(new GridData(GridData.FILL_BOTH | GridData.GRAB_VERTICAL));
Tree atree = toolkit.createTree(comp, SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI);
atree.setLayout(new GridLayout());
GridData gd = new GridData(GridData.FILL_BOTH);
代码示例来源:origin: inspectIT/inspectIT
masterMain.setLayout(new GridLayout(1, false));
Tree tree = toolkit.createTree(masterMain, SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER);
tree.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 2));
代码示例来源:origin: inspectIT/inspectIT
Tree tree = toolkit.createTree(mainForm.getBody(), SWT.V_SCROLL | SWT.H_SCROLL);
toolkit.setBorderStyle(borderStyle);
treeViewer = new DeferredTreeViewer(tree);
代码示例来源:origin: inspectIT/inspectIT
Tree tree = toolkit.createTree(upperComposite, SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI);
toolkit.setBorderStyle(borderStyle);
treeViewer = new TreeViewer(tree);
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
Tree tree = fToolkit.createTree(comp, SWT.V_SCROLL | SWT.H_SCROLL);
tree.setLayout(new GridLayout());
GridData gd = new GridData(GridData.FILL_BOTH);
代码示例来源:origin: org.eclipse.mylyn.builds/ui
viewer = new TreeViewer(toolkit.createTree(composite, SWT.H_SCROLL));
GridDataFactory.fillDefaults().hint(500, 100).grab(true, true).applyTo(viewer.getControl());
viewer.setContentProvider(new ChangesContentProvider());
代码示例来源:origin: org.eclipse.mylyn.builds/ui
composite.setLayout(new GridLayout(1, false));
viewer = new TreeViewer(toolkit.createTree(composite, SWT.NONE));
viewer.setAutoExpandLevel(AbstractTreeViewer.ALL_LEVELS);
GridDataFactory.fillDefaults().hint(300, 100).grab(true, true).applyTo(viewer.getControl());
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
fBundleRoot = PDEProject.getBundleRoot(fBuildModel.getUnderlyingResource().getProject());
fTreeViewer = new CheckboxTreeViewer(toolkit.createTree(container, SWT.CHECK));
fTreeViewer.setContentProvider(new TreeContentProvider());
fTreeViewer.setLabelProvider(new WorkbenchLabelProvider());
代码示例来源:origin: inspectIT/inspectIT
Tree tree = toolkit.createTree(mainForm.getBody(), SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI);
toolkit.setBorderStyle(borderStyle);
treeViewer = new DeferredTreeViewer(tree);
代码示例来源:origin: inspectIT/inspectIT
final Tree tree = toolkit.createTree(parent, SWT.MULTI | SWT.FULL_SELECTION | SWT.VIRTUAL | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
tree.setHeaderVisible(true);
代码示例来源:origin: org.eclipse.mylyn.builds/ui
viewer = new TreeViewer(toolkit.createTree(composite, SWT.MULTI));
GridDataFactory.fillDefaults().hint(300, 100).span(6, 1).grab(true, true).applyTo(viewer.getControl());
viewer.setContentProvider(new TestResultContentProvider());