Package org.eclipse.swt.widgets

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


  //*-- add the two buttons to add and delete directory names
  final Button addButton = new Button(composite, SWT.PUSH); addButton.setText("Add");
  GridData addButtonGd = new GridData(); addButtonGd.horizontalAlignment = GridData.BEGINNING;
  addButtonGd.grabExcessHorizontalSpace = false;
  addButton.setLayoutData(addButtonGd);
  addButton.addListener( SWT.Selection, new Listener()
  {
   public void handleEvent(Event e)
   {
    DirectoryDialog dd = new DirectoryDialog(composite.getShell());
    dd.setMessage("Please select a directory to exclude from the scan");
View Full Code Here


  final Button deleteButton = new Button(composite, SWT.PUSH); deleteButton.setText("Delete");
  GridData delButtonGd = new GridData(); delButtonGd.horizontalAlignment = GridData.BEGINNING;
  delButtonGd.grabExcessHorizontalSpace = false;
  deleteButton.setLayoutData(delButtonGd);
  deleteButton.addListener( SWT.Selection, new Listener()
  {
   public void handleEvent(Event e)
   {
    int i = table.getSelectionIndex();
    if (i != -1) { dirs.remove(i); fillUpTable(); }
View Full Code Here

  Button indexButton = new Button(composite, SWT.PUSH); indexButton.setText("Browse");
  GridData indexButtonGd = new GridData(); indexButtonGd.horizontalAlignment = GridData.BEGINNING;
  indexButtonGd.grabExcessHorizontalSpace = false;
  indexButton.setLayoutData(indexButtonGd);
  indexButton.addListener( SWT.Selection, new Listener() {
   public void handleEvent(Event e)
   {
    DirectoryDialog dd = new DirectoryDialog(composite.getShell());
    dd.setMessage("Please select the Lucene index directory");
    String dir = dd.open();
View Full Code Here

  Button dbButton = new Button(composite, SWT.PUSH); dbButton.setText("Browse");
  GridData dbButtonGd = new GridData(); dbButtonGd.horizontalAlignment = GridData.BEGINNING;
  dbButtonGd.grabExcessHorizontalSpace = false;
  dbButton.setLayoutData(dbButtonGd);
  dbButton.addListener( SWT.Selection, new Listener() {
   public void handleEvent(Event e)
   {
    DirectoryDialog dd = new DirectoryDialog(composite.getShell());
    dd.setMessage("Please select the Berekeley DB directory");
    String dir = dd.open();
View Full Code Here

  Button webButton = new Button(composite, SWT.PUSH); webButton.setText("Browse");
  GridData webButtonGd = new GridData(); webButtonGd.horizontalAlignment = GridData.BEGINNING;
  webButtonGd.grabExcessHorizontalSpace = false;
  webButton.setLayoutData(dbButtonGd);
  webButton.addListener( SWT.Selection, new Listener() {
   public void handleEvent(Event e)
   {
    DirectoryDialog dd = new DirectoryDialog(composite.getShell());
    dd.setMessage("Please select the Web server root directory");
    String dir = dd.open();
View Full Code Here

    mDirectoryField.setText(fGlobalScope
        .getString(DefaultPreferences.PODCAST_DIRECTORY));

    Button folderButton = new Button(autoReloadContainer, SWT.PUSH);
    folderButton.setText(Messages.getString("general.browse"));
    folderButton.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event event) {
        String lPath = mDirectoryField.getText();
        Shell lShell = OwlUI.getPrimaryShell();
        DirectoryDialog dialog = new DirectoryDialog(lShell, SWT.OPEN);
        dialog.setFilterPath(lPath);
View Full Code Here

  //*-- add the two buttons to add and delete directory names
  final Button addButton = new Button(composite, SWT.PUSH); addButton.setText("Add");
  GridData addButtonGd = new GridData(); addButtonGd.horizontalAlignment = GridData.BEGINNING;
  addButtonGd.grabExcessHorizontalSpace = false;
  addButton.setLayoutData(addButtonGd);
  addButton.addListener( SWT.Selection, new Listener()
  {
   public void handleEvent(Event e)
   {
    DirectoryDialog dd = new DirectoryDialog(composite.getShell());
    dd.setMessage("Please select a directory to include in the scan");
View Full Code Here

  final Button deleteButton = new Button(composite, SWT.PUSH); deleteButton.setText("Delete");
  GridData delButtonGd = new GridData(); delButtonGd.horizontalAlignment = GridData.BEGINNING;
  delButtonGd.grabExcessHorizontalSpace = false;
  deleteButton.setLayoutData(delButtonGd);
  deleteButton.addListener( SWT.Selection, new Listener()
  {
   public void handleEvent(Event e)
   {
    int i = table.getSelectionIndex();
    if (i != -1) { dirs.remove(i); fillUpTable(); }
View Full Code Here

          setVisible(false);
        }
      }
    };
    stopButton.addListener(SWT.Selection, listener);
    closeButton.addListener(SWT.Selection, listener);

    shell.pack();
       
        checkAvailable();
  }
View Full Code Here

            shell.setVisible(false);
          }
        }
      };
      clearButton.addListener(SWT.Selection, listener);
      closeButton.addListener(SWT.Selection, listener);

      shell.pack();
    }
    text.setText(buf.toString());
    shell.open();
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.