Examples of addSelectionListener()


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

    TabItem sipTabItem = new TabItem(tabFolder, SWT.NONE);
    sipTabItem.setText("Solution Instruments <-> Solution Principles");

    tabFolder.setSelection(lastSelectedTagItemIndex);

    tabFolder.addSelectionListener(new SelectionListener() {

      @Override
      public void widgetSelected(SelectionEvent e) {
        lastSelectedTagItemIndex = tabFolder.getSelectionIndex();
View Full Code Here

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

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

    for (int i = 0; i < columnNames.length; i++) {
      TableColumn column = new TableColumn(table, SWT.NONE);
      column.setText(columnNames[i]);
      column.setWidth(columnWidths[i]);
      final int columnIndex = i;
      column.addSelectionListener(new SelectionAdapter() {
        public void widgetSelected(SelectionEvent e) {
          sort(columnIndex);
        }
      });
    }
View Full Code Here

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

    });

    // Delete
    item = new MenuItem(popUpMenu, SWT.PUSH);
    item.setText(AddressBook.resAddressBook.getString("Pop_up_delete"));
    item.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        TableItem[] items = table.getSelection();
        if (items.length == 0)
          return;
        items[0].dispose();
View Full Code Here

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

    textfield.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
        doValidate();
      }
    });
    textfield.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetDefaultSelected(SelectionEvent e) {
        doCallback();
      }
    });
View Full Code Here

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

           }
        );
        final ToolItem schemaSectionItemDelete = new ToolItem(schemaSectionToolBar, SWT.PUSH);
        schemaSectionItemDelete.setText("delete");
        schemaSectionItemDelete.setImage(Plugin.getDefault().getImageRegistry().get(Plugin.IMAGE_SCHEMADEFINITION_REMOVE));
        schemaSectionItemDelete.addSelectionListener(new SelectionListener() {
           
            public void widgetSelected(SelectionEvent e) {
                ISelection selection = _treeViewer.getSelection();
                if (selection instanceof TreeSelection) {
                    TreeSelection treeSelection = (TreeSelection) selection;
View Full Code Here

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

        item.setImage(image);
      } catch (Exception e) {
        Logger log = Logger.getLogger("logs.init");
        log.log(Level.WARNING, "icon.png not found");
      }
      item.addSelectionListener(new SelectionListener() {

        @Override
        public void widgetDefaultSelected(SelectionEvent arg0) {
        }
View Full Code Here

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

    GridData gridDataTree = new GridData(GridData.FILL_BOTH);
    gridDataTree.horizontalSpan = 3;
    gridDataTree.widthHint = convertWidthInCharsToPixels(80);
    gridDataTree.heightHint = convertHeightInCharsToPixels(20);
    treeWidget.setLayoutData(gridDataTree);
    treeWidget.addSelectionListener(this);   
    setControl(container);
    performValidation();
  }

  protected TreeViewer createTreeViewer(Composite parent) {
View Full Code Here

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

        for (final String name : names) {
            column = new TreeViewerColumn(viewer, SWT.NONE);
            final TreeColumn treeColumn = column.getColumn();
            treeColumn.setResizable(true);
            treeColumn.setMoveable(true);
            treeColumn.addSelectionListener(new SelectionListener() {

                @Override
                public void widgetDefaultSelected(final SelectionEvent e) {
                }
View Full Code Here

Examples of org.eclipse.ui.ISelectionService.addSelectionListener()

                selectionInProgress = true;
                super.selectionChanged(thePart, theSelection);
                selectionInProgress = false;
            }
        };
        theService.addSelectionListener(selectionListener);
        getCommonViewer().addSelectionChangedListener(this);
    }

    public boolean isVisible() {
        return getSite().getPage().isPartVisible(this);
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.