Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.SelectionListener


        if (isWindows) {
            Button external = new Button(comp2, SWT.PUSH);
            external.setText(Labels.getString("CSVViewerDialog.externalButton")); //$NON-NLS-1$
            external.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
            external.addSelectionListener(new SelectionListener() {
                @Override
                public void widgetSelected(SelectionEvent e) {
                    Thread runner = new Thread() {
                        @Override
                        public void run() {
View Full Code Here


                    }
                }
            }

            // listen to treeitem selection
            functionClausesTree.addSelectionListener(new SelectionListener() {

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

        okButton = createButton(parent, IDialogConstants.OK_ID,
                IDialogConstants.OK_LABEL, true);
        createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL,
                false);

        okButton.addSelectionListener(new SelectionListener() {

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

        labelExtId = new Label(comp, SWT.LEFT);

        // Add the ext id dropdown
        extIdFieldCombo = new Combo(comp, SWT.DROP_DOWN | SWT.READ_ONLY);
        extIdFieldCombo.addSelectionListener(new SelectionListener() {
            @Override
            public void widgetSelected(SelectionEvent arg0) {
                String fieldName = extIdFieldCombo.getText();
                if (fieldName != null && !fieldName.equals("") ) { //$NON-NLS-1$
                    setPageComplete(true);
View Full Code Here

        composite.setLayout(layout);

        setControl(composite);

        selectionList.addSelectionListener(new SelectionListener() {

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

      // set the proposals to force population of the table.
      setProposals(filterProposals(proposals, filterText));

      proposalTable.setHeaderVisible(false);
      proposalTable.addSelectionListener(new SelectionListener() {

        public void widgetSelected(SelectionEvent e) {
          // If a proposal has been selected, show it in the secondary
          // popup. Otherwise close the popup.
          if (e.item == null) {
View Full Code Here

    publicIdField = new Text(composite, SWT.SINGLE | SWT.BORDER);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(publicIdField, XMLCommonUIContextIds.XCUI_DOCTYPE_PUBLIC);
    publicIdField.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    publicIdField.setText(getDisplayValue(doctypeData[1]));

    SelectionListener selectionListener = new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        EditEntityHelper helper = new EditEntityHelper();
        if (e.widget == publicIdBrowseButton) {
          helper.performBrowseForPublicId(getShell(), publicIdField, computeSystemId ? systemIdField : null);
        }
View Full Code Here

    locationHintField.setLayoutData(gd);
    locationHintField.setText(getDisplayValue(fInfo.locationHint));
    locationHintField.addModifyListener(modifyListener);
    locationHintField.setEnabled(fInfo.getProperty("locationHint-readOnly") == null); //$NON-NLS-1$

    SelectionListener selectionListener = new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        performBrowse();
      }
    };
View Full Code Here

    gridLayout.marginHeight = 0;
    gridLayout.marginWidth = 0;
    gridLayout.marginLeft = 3;
    composite.setLayout(gridLayout);

    SelectionListener selectionListener = new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        if (e.widget == newButton) {
          performNew();
        }
        else if (e.widget == editButton) {
View Full Code Here

    widthFudger.setVisible(false);
    Composite placeHolder = new Composite(panel, SWT.NONE);
    placeHolder.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    advancedButton = new Button(panel, SWT.NONE);
    advancedButton.setText(XMLCatalogMessages.UI_LABEL_ADVANCED);
    SelectionListener selectionListener = new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        AdvancedOptionsDialog dialog = new AdvancedOptionsDialog(getShell(), workingUserCatalog);
        dialog.create();
        dialog.getShell().setText(XMLCatalogMessages.UI_LABEL_ADVANCED_XML_CATALOG_PREFS);
        dialog.setBlockOnOpen(true);
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.SelectionListener

Copyright © 2018 www.massapicom. 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.