Package org.eclipse.swt.widgets

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


          extraParamsControl.setVisible(false);
          data = new GridData(GridData.FILL_BOTH);
          data.horizontalSpan=4;
          extraParamsControl.setLayoutData(data);

          optionalParams.addListener(SWT.Selection, new Listener() {
       
        public void handleEvent(Event event) {
          extraParamsControl.setVisible(optionalParams.getSelection());
        }
      });
View Full Code Here


        GridData layoutData = new GridData();
        layoutData.horizontalSpan = 2;
        button.setLayoutData(layoutData);

        button.addListener(SWT.Selection, new Listener(){

            public void handleEvent( Event event ) {
                String host = userHostPage.getHost();
                int port = userHostPage.getPort();
                String password = userHostPage.getPassword();
View Full Code Here

        variableText.setLayoutData( gd );

        Button varButton = toolkit.createButton( composite,
                                                 "Set",
                                                 SWT.PUSH );
        varButton.addListener( SWT.Selection,
                               new Listener() {
                                   public void handleEvent(Event event) {
                                       con.setFieldBinding(variableText.getText());
                                       modeller.reloadLhs();
                                       modeller.setDirty( true );
View Full Code Here

            checkBox.setLayoutData(layoutData);

            // Every time a checkbox is clicked, rebuild the detector factory
            // table
            // to show only relevant entries
            checkBox.addListener(SWT.Selection, new Listener() {
                public void handleEvent(Event e) {
                    syncSelectedCategories();
                }
            });
            checkBox.setData(category);
View Full Code Here

          shell.dispose();
          }
      });

    //hook-up the cancel button to close the dialog and discard the applied changes
    buttonCancel.addListener(SWT.Selection, new Listener()
      {
        public void handleEvent(Event event)
          {
          shell.dispose();
          }
View Full Code Here

    //add the buttons
    Button ok = new Button(controls,SWT.CENTER);
    ok.setText("OK");
    //on ok change the currently active XCDERegister if one has been
    //selected in the dialog
    ok.addListener(SWT.Selection, new Listener()
        {
        public void handleEvent(Event e)
          {
          if (serverList.getSelectionIndex() > -1)
            {
View Full Code Here

        });
   
    //close the dialog on cancel
    Button cancel = new Button(controls,SWT.CENTER);
    cancel.setText("Cancel");
    cancel.addListener(SWT.Selection, new Listener()
          {
          public void handleEvent(Event e)
            {
            if (serverList.getSelectionIndex() == -1)
              XCDERegisterProvider.getProvider().changeRegister(null);
View Full Code Here

    newServer.setToolTipText("Add a server");
    newServer.setImage(AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.xcde","icons/newserver.png").createImage());
    //on clicking new open a dialog to enter the new connection parameters
    //and add the new server.  If there is an error, display an error dialog
    //and return to the input dialog.
    newServer.addListener(SWT.Selection, new Listener()
        {
        public void handleEvent(Event e)
          {
          boolean error;
          do
View Full Code Here

    //remove a server from the list
    Button removeServer = new Button(buttons,SWT.NULL);
    removeServer.setText("Remove Server");
    removeServer.setToolTipText("Delete selected server");
    removeServer.setImage(AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.xcde","icons/delete.png").createImage());
    removeServer.addListener(SWT.Selection, new Listener()
        {
        public void handleEvent(Event e)
          {
          if (serverList.getSelectionCount() <= 0)
            return;
View Full Code Here

    buttons.setLayout(rl);
    Button newServer = new Button(buttons,SWT.NULL);
    newServer.setText("Add Server...");
    newServer.setToolTipText("Add a server");
    newServer.setImage(AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.xcde","icons/newserver.png").createImage());
    newServer.addListener(SWT.Selection, new Listener()
        {
        public void handleEvent(Event e)
          {
          boolean error;
          do
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.