Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.MessageBox.open()


  public void run(IAction action) {

    MessageBox msgBox = new MessageBox(new Shell(), SWT.ICON_QUESTION | SWT.YES | SWT.NO);
    msgBox.setText("Are you really sure?");
    msgBox.setMessage("Are you really sure that you want to sort the labelfile: \n" + _file.getFullPath());
    int response = msgBox.open();

    if (response == SWT.YES) {

      SortedProperties sortedProperties = new SortedProperties();
      sortedProperties.putAll(_props);
View Full Code Here


      mb.setText(MessageText.getString("exportTorrentWizard.process.inputfilebad.title"));
   
      mb.setMessageMessageText.getString("exportTorrentWizard.process.inputfilebad.message")+"\n" +
              e.toString());
     
      mb.open();
     
      return( false );
    }
   
    File output_file = new File( export_file );
View Full Code Here

     
      mb.setText(MessageText.getString("exportTorrentWizard.process.outputfileexists.title"));
     
      mb.setMessage(MessageText.getString("exportTorrentWizard.process.outputfileexists.message"));
     
      int result = mb.open();
   
      if( result == SWT.NO ){
       
        return( false );
      }
View Full Code Here

     
    mb.setText(error_title);
     
    mb.setMessage(error_detail);
     
    mb.open();
   
    return( false );
  }
}
View Full Code Here

        azureus_core.getTrackerHost().hostTorrent(torrent, true, false );
      } catch (TRHostException e) {
        MessageBox mb = new MessageBox(panel.getShell(), SWT.ICON_ERROR | SWT.OK);
        mb.setText(MessageText.getString("MyTorrentsView.menu.host.error.title"));
        mb.setMessage(MessageText.getString("MyTorrentsView.menu.host.error.message").concat("\n").concat(e.toString()));
        mb.open();
      }
    }
  }
 
  public static void
View Full Code Here

        azureus_core.getTrackerHost().publishTorrent(torrent);
      } catch (TRHostException e) {
        MessageBox mb = new MessageBox(panel.getShell(), SWT.ICON_ERROR | SWT.OK);
        mb.setText(MessageText.getString("MyTorrentsView.menu.host.error.title"));
        mb.setMessage(MessageText.getString("MyTorrentsView.menu.host.error.message").concat("\n").concat(e.toString()));
        mb.open();
      }
    }
  }
 
 
View Full Code Here

            | SWT.YES | SWT.NO);
        mb.setText(MessageText.getString("seedmore.title"));
        mb.setMessage(MessageText.getString("seedmore.shareratio")
            + (dm.getStats().getShareRatio() / 10) + "%.\n"
            + MessageText.getString("seedmore.uploadmore"));
        int action = mb.open();
        stopme = action == SWT.YES;
      }
    }
   
    if (stopme) {
View Full Code Here

      mb.setText(MessageText.getString("importTorrentWizard.process.inputfilebad.title"));
   
      mb.setMessageMessageText.getString("importTorrentWizard.process.inputfilebad.message")+"\n" +
              e.toString());
     
      mb.open();
     
      return( false );
    }
   
    File output_file = new File( getTorrentFile() );
View Full Code Here

     
      mb.setText(MessageText.getString("importTorrentWizard.process.outputfileexists.title"));
     
      mb.setMessage(MessageText.getString("importTorrentWizard.process.outputfileexists.message"));
     
      int result = mb.open();
   
      if(result == SWT.NO) {
       
        return( false );
      }
View Full Code Here

     
    mb.setText(error_title);
     
    mb.setMessage(error_detail);
     
    mb.open();
   
    return( false );
  }
}
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.