本文整理汇总了Java中org.eclipse.swt.widgets.Tree.setBounds方法的典型用法代码示例。如果您正苦于以下问题:Java Tree.setBounds方法的具体用法?Java Tree.setBounds怎么用?Java Tree.setBounds使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.swt.widgets.Tree
的用法示例。
在下文中一共展示了Tree.setBounds方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LatticeTabUI
import org.eclipse.swt.widgets.Tree; //导入方法依赖的package包/类
private LatticeTabUI(TabFolder tabFolderMIPA)
{
TabItem tabItemLattice = new TabItem(tabFolderMIPA, SWT.NONE);
tabItemLattice.setToolTipText("representation of lattice");
tabItemLattice.setText("Lattice");
SashForm sashLattice = new SashForm(tabFolderMIPA, SWT.NONE);
tabItemLattice.setControl(sashLattice);
StyledText styledTextLattice = new StyledText(sashLattice, SWT.BORDER
| SWT.READ_ONLY);
styledTextLattice.setText("Information for lattice are given here \n.");
styledTextLattice.setToolTipText("Information for lattice.");
Group grpLatticeTree = new Group(sashLattice, SWT.NONE);
grpLatticeTree.setToolTipText("tree view of lattice");
grpLatticeTree.setText("Lattice Tree View");
latticeTreeViewer = new TreeViewer(grpLatticeTree, SWT.BORDER);
Tree latticeTree = latticeTreeViewer.getTree();
latticeTree.setBounds(10, 29, 444, 526);
//latticeTreeViewer.setLabelProvider(new LatticeTreeLabelProvider());
//latticeTreeViewer.setContentProvider(new LatticeTreeContentProvider());
sashLattice.setWeights(new int[] { 1, 1 });
}
示例2: PredicateTabUI
import org.eclipse.swt.widgets.Tree; //导入方法依赖的package包/类
private PredicateTabUI(TabFolder tabFolderMIPA)
{
TabItem tabItemPredicate = new TabItem(tabFolderMIPA, SWT.NONE);
tabItemPredicate
.setToolTipText("In this tab folder, the predicate is given in the form of xml file as well as the view of abstract syntax tree.");
tabItemPredicate.setText("Predicate");
SashForm sashPredicate = new SashForm(tabFolderMIPA, SWT.NONE);
sashPredicate
.setToolTipText("Drag to change the sizes of the two sides of the window.");
tabItemPredicate.setControl(sashPredicate);
styledTextPredicate = new StyledText(sashPredicate, SWT.BORDER);
styledTextPredicate.setToolTipText("Predicate are shown here.");
Group grpPredicateTree = new Group(sashPredicate, SWT.NONE);
grpPredicateTree.setToolTipText("Tree view of predicate");
grpPredicateTree.setText("Predicate Tree View");
predicateTreeViewer = new TreeViewer(grpPredicateTree, SWT.BORDER);
Tree treePredicate = predicateTreeViewer.getTree();
treePredicate.setBounds(10, 28, 444, 527);
sashPredicate.setWeights(new int[] { 1, 1 });
//predicateTreeViewer
// .setContentProvider(new PredicateTreeContentProvider());
//predicateTreeViewer.setLabelProvider(new PredicateTreeLabelProvider());
}