本文整理了Java中org.eclipse.swt.widgets.Tree.selectAll()
方法的一些代码示例,展示了Tree.selectAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.selectAll()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:selectAll
[英]Selects all of the items in the receiver.
If the receiver is single-select, do nothing.
[中]选择接收器中的所有项目。
如果接收器是单选的,什么也不做。
代码示例来源:origin: cbeust/testng-eclipse
public void run() {
m_tree.selectAll();
expandAll();
};
};
代码示例来源:origin: BiglySoftware/BiglyBT
@Override
public void
keyPressed(KeyEvent e)
{
int key = e.character;
if ( key <= 26 && key > 0 ){
key += 'a' - 1;
}
if ( e.stateMask == SWT.MOD1 ){
if ( key == 'a' ){
tree.selectAll();
}
}
}
});
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide
/**
* Select all of the elements in the receiver.
*/
void selectAll() {
viewer.getTree().selectAll();
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
@Override
public void run() {
super.run();
fTreeViewer.getTree().selectAll();
}
};
代码示例来源:origin: org.eclipse/org.eclipse.datatools.connectivity.ui.dse
/**
* Select all profiles
*/
public void selectAll(){
TreeViewer viewer = (TreeViewer) this.getNavigatorViewer();
viewer.getTree().selectAll();
validate();
}
代码示例来源:origin: org.apache.uima/uimaj-ep-cas-editor
/**
* Selects all elements in the tree viewer.
*/
@Override
public void run() {
mTableViewer.getTree().selectAll();
mTableViewer.setSelection(mTableViewer.getSelection());
}
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
@Override
protected void handleSelectAll() {
fExtensionTree.getTree().selectAll();
updateButtons(fFilteredTree.getViewer().getSelection());
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
@Override
public void run(IAction action) {
Viewer viewer = ((AbstractDebugView) getView()).getViewer();
((Tree) viewer.getControl()).selectAll();
// ensure that the selection change callback is fired
viewer.setSelection(viewer.getSelection());
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui
@Override
protected void handleSelectAll() {
TreeViewer viewer = getTreePart().getTreeViewer();
if (viewer == null) {
return;
}
Tree tree = viewer.getTree();
if (tree == null) {
return;
}
tree.selectAll();
selectionChanged(viewer.getStructuredSelection());
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
@Override
public void widgetSelected(SelectionEvent selectionEvent) {
BreakpointsViewer viewer = fTViewer.getViewer();
viewer.getTree().selectAll();
viewer.setCheckedElements(viewer.getStructuredSelection().toArray());
viewer.setGrayedElements(new Object[] {});
viewer.getTree().deselectAll();
validateInput();
}
});
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
/**
* Handles the select all button pressed
*
*/
private void handleSelectAllPressed() {
BreakpointsViewer viewer = fTView.getViewer();
viewer.getTree().selectAll();
viewer.setCheckedElements(viewer.getStructuredSelection().toArray());
viewer.setGrayedElements(new Object[] {});
viewer.getTree().deselectAll();
setPageComplete(detectPageComplete());
}
内容来源于网络,如有侵权,请联系作者删除!