org.eclipse.swt.widgets.Tree.deselectAll()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.3k)|赞(0)|评价(0)|浏览(168)

本文整理了Java中org.eclipse.swt.widgets.Tree.deselectAll()方法的一些代码示例,展示了Tree.deselectAll()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tree.deselectAll()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Tree
类名称:Tree
方法名:deselectAll

Tree.deselectAll介绍

[英]Deselects all selected items in the receiver.
[中]取消选择接收器中的所有选定项目。

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

if ( WebResult.STRING_OK.equalsIgnoreCase( webResult.getResult() ) ) {
 wTree.deselectAll();
 engageViewAndLogUpdateTimer();
} else {
 wTree.deselectAll();
 engageViewAndLogUpdateTimer();
} else {

代码示例来源:origin: cbeust/testng-eclipse

@Override
public void setSelectedTest(String testId) {
 if (testId == null) return;
 ITreeItem node = m_treeItemMap.get(testId);
 if (node != null) {
  m_tree.select(node.getTreeItem());
 } else {
  m_tree.deselectAll();
 }
}

代码示例来源:origin: org.eclipse/org.eclipse.datatools.connectivity.ui.dse

/**
 * Deselect all profiles
 */
public void unselectAll(){
  TreeViewer viewer = (TreeViewer) this.getNavigatorViewer();
  viewer.getTree().deselectAll();
}

代码示例来源:origin: org.apache.uima/ruta-ep-caseditor

/**
 * Unchecks all types of the typesystem so that they are not highlighted anymore.
 * 
 */
public void uncheckAll() {
 editor.setShownAnnotationTypes(new LinkedList<Type>());
 getTreeViewer().getTree().deselectAll();
}

代码示例来源:origin: org.eclipse/org.eclipse.datatools.enablement.oda.xml.ui

public void widgetSelected( SelectionEvent e )
{
  TreeItem items[] = availableXmlTree.getSelection( );
  for ( int i = 0; i < items.length; i++ )
  {
    selectedItem = items[0];
    if ( items[i].getGrayed( ) )
    {
      availableXmlTree.setRedraw( false );
      availableXmlTree.deselectAll( );
      availableXmlTree.setRedraw( true );
      availableXmlTree.redraw( );
    }
  }
  if ( selectedItem != null )
    btnAdd.setEnabled( true );
  else
    btnAdd.setEnabled( false );
}

代码示例来源:origin: org.eclipse/org.eclipse.datatools.enablement.oda.xml.ui

public void widgetSelected( SelectionEvent e )
{
  TreeItem items[] = availableXmlTree.getSelection( );
  for ( int i = 0; i < items.length; i++ )
  {
    selectedItem = items[0];
    if ( items[i].getGrayed( ) )
    {
      availableXmlTree.setRedraw( false );
      availableXmlTree.deselectAll( );
      availableXmlTree.setRedraw( true );
      availableXmlTree.redraw( );
    }
  }
  if ( selectedItem != null )
    btnAdd.setEnabled( true );
  else
    btnAdd.setEnabled( false );
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

if( ( style & SWT.SINGLE ) != 0 ) {
 if( length == 0 || length > 1 ) {
  deselectAll();
 } else {
  TreeItem item = selection[ 0 ];
  deselectAll();
 } else {

代码示例来源:origin: org.codehaus.openxma/xmartclient

/**
 * Grabs the selection information from the model and updates the UI.
 */
private void selection2UI () {
  if (checkedSelection()) {
    Iterator iter = wModel_.nodes_.keySet().iterator();
    while (iter.hasNext()) {
      String key = (String) iter.next();
      TreeNode tn = wModel_.getNode(key);
      TreeItem ti = node2item(tn);
      ti.setChecked(tn.isSelected());
    }
  } else {
    int numSelected = wModel_.getSelectionCount();
    if (numSelected == 0) tree_.deselectAll();
    else {
      TreeItem [] selectedItems = new TreeItem[numSelected];
      String []   keys  = wModel_.getSelection();
      for (int i=0; i<keys.length; i++) {
        selectedItems[i] = node2item(wModel_.getNode(keys[i]));
      }
      tree_.setSelection(selectedItems);
    }
  }
}

代码示例来源: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.swt.cocoa.macosx/x86_64

if (items == null) error (SWT.ERROR_NULL_ARGUMENT);
checkItems ();
deselectAll ();
int length = items.length;
if (length == 0 || ((style & SWT.SINGLE) != 0 && length > 1)) return;

代码示例来源: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());
}

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.converter

treeViewer.getTree().deselectAll();
treeViewer.cancelEditing();
treeViewer.setInput(new ItemProvider(genModels));

代码示例来源:origin: org.eclipse.platform/org.eclipse.team.ui

if (el != null && el.length > 0) {
  treeViewer.setSelection(new StructuredSelection(el[0]));
  treeViewer.getTree().deselectAll();

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

checkWidget ();
if (items == null) error (SWT.ERROR_NULL_ARGUMENT);
deselectAll ();
int length = items.length;
if (length == 0 || ((style & SWT.SINGLE) != 0 && length > 1)) return;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

checkWidget ();
if (items == null) error (SWT.ERROR_NULL_ARGUMENT);
deselectAll ();
int length = items.length;
if (length == 0 || ((style & SWT.SINGLE) != 0 && length > 1)) return;

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

checkWidget ();
if (items == null) error (SWT.ERROR_NULL_ARGUMENT);
deselectAll ();
int length = items.length;
if (length == 0 || ((style & SWT.SINGLE) != 0 && length > 1)) return;

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

int length = items.length;
if (length == 0 || ((style & SWT.SINGLE) != 0 && length > 1)) {
  deselectAll();
  return;

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

if ((style & SWT.MULTI) != 0) deselectAll ();

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

OS.DefWindowProc (handle, OS.WM_SETREDRAW, 0, 0);
} else {
  deselectAll ();

相关文章

Tree类方法