Package org.gudy.azureus2.ui.swt.shells

Examples of org.gudy.azureus2.ui.swt.shells.AdvRenameWindow.open()


            MessageText.getString("dialog.uiswitcher.restart.text"),
            new String[] {
              MessageText.getString("UpdateWindow.restart"),
              MessageText.getString("UpdateWindow.restartLater"),
            }, 0);
        mb.open(new UserPrompterResultListener() {
          public void prompterClosed(int result) {
            if (result != 0) {
              return;
            }
            UIFunctions uif = UIFunctionsManager.getUIFunctions();
View Full Code Here


   */
  private static boolean getExitConfirmation(boolean for_restart) {
    MessageBoxShell mb = new MessageBoxShell(SWT.ICON_WARNING | SWT.YES
        | SWT.NO, for_restart ? "MainWindow.dialog.restartconfirmation"
        : "MainWindow.dialog.exitconfirmation", (String[]) null);
    mb.open(null);

    return mb.waitUntilClosed() == SWT.YES;
  }

  public static void uiShutdown() {
View Full Code Here

        MessageBoxShell mb = new MessageBoxShell(
            SWT.ICON_INFORMATION | SWT.OK,
            MessageText.getString( "beta.wizard.disable.title" ),
            MessageText.getString( "beta.wizard.disable.text" ));
       
        mb.open(null);
       
      }else if ( beta_enabled && !beta_was_enabled ){
       
        UpdateMonitor.getSingleton(
          AzureusCoreFactory.getSingleton()).performCheck(
View Full Code Here

        new String[] {
          MessageText.getString("Button.ok"),
        },
        0 );
   
    mb.open(null);
  }
 
  public static void getOffOfSWTThread(AERunnable runnable) {
    tp.run(runnable);
  }
View Full Code Here

        break;
    }

    MessageBoxShell mb = new MessageBoxShell(style, this.title,
        this.messagesAsString());
    mb.open(null);
    int result = mb.waitUntilClosed();

    switch (result) {
      case SWT.OK:
        return ANSWER_OK;
View Full Code Here

              MessageBoxShell mb = new MessageBoxShell(
                  SWT.ICON_ERROR | SWT.OK,
                  "Licence Addition Error",
                  s );
             
              mb.open();
             
              Logger.log(new LogAlert(true, LogAlert.AT_ERROR, "Adding Licence",
                  e));
            }
          }
View Full Code Here

             

              MessageBoxShell mb = new MessageBoxShell(styles,
                  MessageText.getString((String)params[0]),
                  MessageText.getString((String)params[1]));
              mb.open(null);
              int _r = mb.waitUntilClosed();
             
              int  r = 0;
             
              if (( _r & SWT.YES ) != 0 ){
View Full Code Here

  public int promptUser(String title, String text, String[] options,
      int defaultOption) {
   
    MessageBoxShell mb = new MessageBoxShell(title, text, options,
        defaultOption);
    mb.open(null);
    // bah, no way to change this to use the UserPrompterResultListener trigger
    return mb.waitUntilClosed();
  }
 
  public void showDownloadBar(Download download, final boolean display) {
View Full Code Here

          MessageText.getString("Button.yes"),
          MessageText.getString("Button.no")
        },
        1 );
   
    mb.open(new UserPrompterResultListener() {
      public void prompterClosed(int result) {
        if (result == 0) {
          subs.setSubscribed( false );
        }
      }
View Full Code Here

        MessageText.getString("Button.yes"),
        MessageText.getString("Button.no"),
      }, new Integer[] { 2, 0, 1 });
    }

    mb.open(new UserPrompterResultListener() {
      public void prompterClosed(int result) {
        if (result == 0) {
          toRemove[startIndex].setSubscribed( false );
        } else if (result == 2) {
          for (int i = startIndex; i < toRemove.length; i++) {
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.