Package org.eclipse.swt.widgets

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


      }

      /* Table */
      else if (c instanceof Table) {
        Table table = (Table) c;
        table.addSelectionListener(new SelectionAdapter() {
          @Override
          public void widgetSelected(SelectionEvent e) {
            if ((e.detail & SWT.CHECK) != 0)
              run.run();
          }
View Full Code Here


              butIncludeRemove);

        }
      });

      tableIncludeParameter.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
        public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
          TableItem item = (TableItem) e.item;
          if (item == null)
            return;
          txtIncludeParameter.setText(item.getText(0));
View Full Code Here

        fPLTTableViewer.setContentProvider(new ContentProvider());
        fPLTTableViewer.setInput(this);
        // fPLTList = new org.eclipse.swt.widgets.List(composite, SWT.MULTI
        // | SWT.V_SCROLL | SWT.BORDER);
        final Table table = fPLTTableViewer.getTable();
        table.

        addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(final SelectionEvent e) {
                enableButtons();
View Full Code Here

        tableLabel.setLayoutData(data);
        tableLabel.setFont(font);

        final Table table = new Table(parent, SWT.CHECK | SWT.BORDER | SWT.MULTI
                | SWT.FULL_SELECTION);
        table.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(final SelectionEvent e) {
                if (e.detail == SWT.CHECK) {
                    final RuntimeInfo ri = (RuntimeInfo) e.item.getData();
                    defaultRuntime = ri;
View Full Code Here

        gd_table.heightHint = 100;
        table.setLayoutData(gd_table);
        table.setLinesVisible(true);
        table.setHeaderVisible(true);
       
        table.addSelectionListener(new SelectionListener() {
     
      public void widgetSelected(SelectionEvent e) {
        TableItem[] items = table.getSelection();
                if (items != null && items.length > 0) {
                  int index = notifications.indexOf((Notification) items[0].getData());
View Full Code Here

        data.widthHint = 200;
        composite.setLayoutData(data);
        Label label = new Label(composite, SWT.NONE);
        label.setText(strings.getProperty(CATEGORY_NAME, ActivityMessages.ActivityEnabler_categories) + ':');
        Table table = new Table(composite, SWT.CHECK | SWT.BORDER | SWT.SINGLE);
        table.addSelectionListener(new SelectionAdapter() {

      /*
       * (non-Javadoc)
       *
       * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
View Full Code Here

    Table hyperlinkDetectorTable= new Table(editorComposite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION | SWT.CHECK);
    hyperlinkDetectorTable.setHeaderVisible(true);
    hyperlinkDetectorTable.setLinesVisible(true);
    hyperlinkDetectorTable.setFont(parent.getFont());
   
    hyperlinkDetectorTable.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        handleListSelection();
      }
      public void widgetDefaultSelected(SelectionEvent e) {
      }
View Full Code Here

      public void widgetDefaultSelected(SelectionEvent e) {
       
      }
    });
   
    tblSession.addSelectionListener(new SelectionListener() {
     
      @Override
      public void widgetSelected(SelectionEvent e) {
        int idx = tblSession.getSelectionIndex();
        IoSession session = (IoSession)tblSession.getItem(idx).getData("session");
View Full Code Here

      public void widgetDefaultSelected(SelectionEvent e) {
       
      }
    });
   
    tblSession.addSelectionListener(new SelectionListener() {
     
      @Override
      public void widgetSelected(SelectionEvent e) {
        int idx = tblSession.getSelectionIndex();
        IoSession session = (IoSession)tblSession.getItem(idx).getData("session");
View Full Code Here

    viewer = new TableViewer(control, SWT.MULTI|SWT.FULL_SELECTION|SWT.BORDER|SWT.H_SCROLL|SWT.V_SCROLL);
    Table table = viewer.getTable();
    table.setLayoutData(new GridData(GridData.FILL_BOTH));
    table.setHeaderVisible(true);
    table.setLinesVisible(true);
    table.addSelectionListener(new SelectionAdapter(){
      public void widgetSelected(SelectionEvent evt){
        TableItem[] items = viewer.getTable().getSelection();
        boolean enable = false;
        if(items.length > 0){
          String path = items[0].getText(1);
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.