Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Table.select()


      } catch (NoSuchMethodError e) {
        /* Ignore for Pre 3.0 SWT.. */
      }
    }
    if (isSelected())
      table.select(table.indexOf(newItem));
    else
      table.deselect(table.indexOf(newItem));

    newItem.setData("TableRow", item.getData("TableRow"));
  }
View Full Code Here


    uriColumn.setText(COLUMN_URI);
    uriColumn.setToolTipText(bundle.getString("label.namespace.uri"));
    uriColumn.setWidth(URI_COLUMN_INIT_WIDTH);

    // select the 1st line in the table
    table.select(0);

    // add table listeners
    table.addMouseListener(new MouseAdapter() {

      @Override
View Full Code Here

        Table table = view.getViewer().getTable();
        TableItem[] items = table.getItems();
        for (int i = 0; i < items.length; i++) {
          ReviewIssue reviewIssueInTable = (ReviewIssue) items[i].getData();
          if (reviewIssueInTable.getIssueId().equals(issueId)) {
            table.select(i);
          }
        }
        ReviewTableViewAction.NOTIFY_EDITOR.run();
        try {
          ReviewEditorView.bringViewToTop().setFocus();
View Full Code Here

      if (view == null) {
        view = ReviewTableView.bringViewToTop();
      }
      view.getViewer().refresh();
      Table table = view.getTable();
      table.select(0);
      updateNextPreviousIcon();
      reviewIssueModel.notifyListeners(ReviewIssueModelEvent.ADD);
    }
    return true;
  }
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.