Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Tree.addSelectionListener()


    composite_2.setLayoutData(fd_composite_2);

    final Tree tree = new Tree(composite_2, SWT.BORDER | SWT.NO_FOCUS
        | SWT.NONE);
    tree.setBounds(0, 36, 215, 674);
    tree.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        TreeItem[] selection = tree.getSelection();
        // Handler for Switches tree item
        if (selection.length != 0) {
View Full Code Here


  }
 
  // TODO 联系人列表
  private void createRosterPanel(SashForm form) {
    Tree tree = new Tree(form,SWT.BORDER | SWT.VIRTUAL);
    tree.addSelectionListener(new SelectionAdapter() {

      @Override
      public void widgetSelected(SelectionEvent e) {
        //TODO
        TreeItem selectedItem = (TreeItem)e.item;
View Full Code Here

      public void keyReleased(KeyEvent e) {
        // do nothing
      }
    });

    tree.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        // do nothing
      }

      public void widgetDefaultSelected(SelectionEvent e) {
View Full Code Here

      public void keyReleased(KeyEvent e) {
        // do nothing
      }
    });

    tree.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        // do nothing
      }

      public void widgetDefaultSelected(SelectionEvent e) {
View Full Code Here

      }
        }

        if (fDoubleClickSelects) {
            Tree tree = fViewer.getTree();
            tree.addSelectionListener(new SelectionAdapter() {
                @Override
        public void widgetDefaultSelected(SelectionEvent e) {
                    updateOKStatus();
                    if (fCurrStatus.isOK()) {
            access$superButtonPressed(IDialogConstants.OK_ID);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.