本文整理匯總了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();
}