本文整理汇总了Java中org.eclipse.jface.viewers.TreeViewer.expandAll方法的典型用法代码示例。如果您正苦于以下问题:Java TreeViewer.expandAll方法的具体用法?Java TreeViewer.expandAll怎么用?Java TreeViewer.expandAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jface.viewers.TreeViewer
的用法示例。
在下文中一共展示了TreeViewer.expandAll方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import org.eclipse.jface.viewers.TreeViewer; //导入方法依赖的package包/类
private void initialize() {
setLayout(new FillLayout());
viewer = new TreeViewer(this);
viewer.setContentProvider(this);
viewer.setLabelProvider(this);
viewer.setInput(getInitalInput());
viewer.expandAll();
viewer.addSelectionChangedListener(this);
}
示例2: initialize
import org.eclipse.jface.viewers.TreeViewer; //导入方法依赖的package包/类
private void initialize() {
setLayout(new FillLayout());
screenClasses = new TreeViewer(this);
screenClasses.setContentProvider(this);
screenClasses.setLabelProvider(this);
screenClasses.setInput(getInitalInput());
screenClasses.expandAll();
screenClasses.addSelectionChangedListener(this);
screenClasses.collapseAll();
}
示例3: createPartControl
import org.eclipse.jface.viewers.TreeViewer; //导入方法依赖的package包/类
@Override
public void createPartControl(Composite parent) {
treeViewer = new TreeViewer(parent);
treeViewer.setContentProvider(new ViewRefContentProvider());
treeViewer.setLabelProvider(new ViewRefLabelProvider());
treeViewer.setInput(null);
treeViewer.expandAll();
getSite().setSelectionProvider(treeViewer);
getSite().getPage().addSelectionListener(this);
}
示例4: redraw
import org.eclipse.jface.viewers.TreeViewer; //导入方法依赖的package包/类
public void redraw() {
TreeViewer viewer = getTreeViewer();
if (viewer != null) {
Control control = viewer.getControl();
if ((control != null) && (!control.isDisposed())) {
control.setRedraw(false);
viewer.expandAll();
control.setRedraw(true);
}
}
}
示例5: setTreeViewer
import org.eclipse.jface.viewers.TreeViewer; //导入方法依赖的package包/类
/**
* 设置类选择树对应的数据,并将所有节点展开
* @param treeViewer
*/
private void setTreeViewer(final TreeViewer treeViewer) {
treeViewer.setInput(nodeListManager.getNodeList().toArray());
treeViewer.expandAll();
}