Examples of addSelectionListener()


Examples of org.eclipse.jface.util.OpenStrategy.addSelectionListener()

   * (non-Javadoc) Method declared on Viewer.
   */
  protected void hookControl(Control control) {
    super.hookControl(control);
    OpenStrategy handler = new OpenStrategy(control);
    handler.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        // On Windows, selection events may happen during a refresh.
        // Ignore these events if we are currently in preservingSelection().
        // See bug 184441.
        if (!inChange) {
View Full Code Here

Examples of org.eclipse.sapphire.ui.forms.swt.RadioButtonsGroup.addSelectionListener()

                               
                                radioButtonsGroup.setEnabled( property.enabled() );
                            }
                        };
                               
                        radioButtonsGroup.addSelectionListener
                        (
                            new SelectionAdapter()
                            {
                                @Override
                                public void widgetSelected( final SelectionEvent event )
View Full Code Here

Examples of org.eclipse.swt.custom.CCombo.addSelectionListener()

      public void keyPressed(KeyEvent e) {
        keyReleaseOccured(e);
      }
    });

    comboBox.addSelectionListener(new SelectionAdapter() {
      public void widgetDefaultSelected(SelectionEvent event) {
        applyEditorValueAndDeactivate();
      }

      public void widgetSelected(SelectionEvent event) {
View Full Code Here

Examples of org.eclipse.swt.custom.CTabFolder.addSelectionListener()

    // use SWT.FLAT style so that an extra 1 pixel border is not reserved
    // inside the folder
    parent.setLayout(new FillLayout());
    final CTabFolder newContainer = new CTabFolder(parent, SWT.BOTTOM
        | SWT.FLAT);
    newContainer.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        int newPageIndex = newContainer.indexOf((CTabItem) e.item);
        pageChange(newPageIndex);
      }
    });
View Full Code Here

Examples of org.eclipse.swt.custom.TableCursor.addSelectionListener()

                    editor.setEditor(text);
                }
            }
        });

        cursor.addSelectionListener(new SelectionAdapter() {
            public void widgetSelected(SelectionEvent event) {
                table.setSelection(new TableItem[] { cursor.getRow() });
            }

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

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

    });

    /*
     * Remove inactive when clicked
     */
    clearInActiveButton.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        removeInActivePanels();
      }

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

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

        {
          wizard.setBetaEnabled( on_button.getSelection());
        }
      };
    off_button.addSelectionListener(l);
    on_button.addSelectionListener(l);
   
    on_button.setSelection( wizard.getBetaEnabled());
    off_button.setSelection( !wizard.getBetaEnabled());

    LinkLabel forum = new LinkLabel( rootPanel, "beta.wizard.forum", MessageText.getString( "beta.wizard.forum.url" ));
View Full Code Here

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

        txtValue.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
       
        final Text fTxtLayout = txtValue;
        Button btnBrowseLayout = new Button(subform, SWT.PUSH);
        btnBrowseLayout.setText("browse ...");
        btnBrowseLayout.addSelectionListener(new SelectionListener() {
           
            public void widgetSelected(SelectionEvent e) {
                handleBrowserLayout(fTxtLayout)
            }
           
View Full Code Here

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

    /*
     * Add listener if given; for default buttons this is used in place of the default listener
     */
    if (null != listener) {
      button.addSelectionListener(listener);
    }

    button.setText(buttonText);
    button.setData("button.id", buttonID);

View Full Code Here

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

    grid_data.widthHint = 60;
    grid_data.grabExcessHorizontalSpace = true;
    button_ok.setFocus();
    button_ok.setLayoutData(grid_data);
   
    button_ok.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent event) {
        shell.close();
      }
    });
   
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.