Examples of MessageBoxShell


Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

              new String[] {
                info.sOriginatingLocation,
                e.getMessage()
              }, -1 );
        else {
          MessageBoxShell mb = new MessageBoxShell(SWT.OK, "OpenTorrentWindow.mb.openError",
              new String[] {
                info.sOriginatingLocation,
                e.getMessage()
              });
          mb.open(null);
        }
      }
    }

    if (addedTorrentsTop.size() > 0) {
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

    if(paused)
      fileInfo.getDownloadManager().resume();
   
    if (!result[0])
    {
      new MessageBoxShell(SWT.ICON_ERROR | SWT.OK,
          MessageText.getString("FilesView.rename.failed.title"),
          MessageText.getString("FilesView.rename.failed.text")).open(null);
    }
   
    return true;
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

            new String[]{
              MessageText.getString( "OpenTorrentWindow.mb.notTorrent.retry" ),
              MessageText.getString( "Button.cancel" )};
        }
       
        MessageBoxShell boxShell = new MessageBoxShell(
            MessageText.getString("OpenTorrentWindow.mb.notTorrent.title"),
            MessageText.getString("OpenTorrentWindow.mb.notTorrent.text",
                new String[] {
                torrentName,
                isHTML ? "" : MessageText.getString("OpenTorrentWindow.mb.notTorrent.cannot.display")
            }),
            buttons
            , 0 );
       
        if (isHTML) {
          boxShell.setHtml(sFirstChunk);
        }
        boxShell.open(
          new UserPrompterResultListener()
          {
            public void
            prompterClosed(
              int result )
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

          1,
          2
        };
        defaultButtonPos = 2;

        final MessageBoxShell mb = new MessageBoxShell(title, text, buttons,
            defaultButtonPos);
        int numLeft = (dms.length - i);
        if (numLeft > 1) {
          mb.setRemember("na", false, MessageText.getString(
              "v3.deleteContent.applyToAll", new String[] {
                "" + numLeft
              }));
          // never store remember state
          mb.setRememberOnlyIfButton(-3);
        }
        mb.setRelatedObject(dm);
        mb.setLeftImage("image.trash");
        mb.addCheckBox("deletecontent.also.deletetorrent", 2, deleteTorrent);

        final int index = i;

        mb.open(new UserPrompterResultListener() {

          public void prompterClosed(int result) {
            ImageLoader.getInstance().releaseImage("image.trash");

            removeDownloadsPrompterClosed(dms, index, deleteFailed, result,
                mb.isRemembered(), mb.getCheckBoxEnabled());
          }
        });
        return;
      } else {
        boolean deleteData = confirm == 1;
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

    new Listener()
    {
          public void
      handleEvent(Event event)
          {
            MessageBoxShell mb = new MessageBoxShell(
                SWT.ICON_WARNING | SWT.OK | SWT.CANCEL,
                MessageText.getString("resetconfig.warn.title"),
                MessageText.getString("resetconfig.warn"));
           
            mb.setDefaultButtonUsingStyle(SWT.CANCEL);
           
            mb.setParent(parent.getShell());

            mb.open(
              new UserPrompterResultListener()
              {
                public void
                prompterClosed(
                  int returnVal )
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

      }
    });
   
    UISwitcherUtil.addListener(new UISwitcherListener() {
      public void uiSwitched(String ui) {
        MessageBoxShell mb = new MessageBoxShell(
            MessageText.getString("dialog.uiswitcher.restart.title"),
            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

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

   * @return true, if the user choosed OK in the exit dialog
   *
   * @author Rene Leonhardt
   */
  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;
  }
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

     
      COConfigurationManager.setParameter( "Beta Programme Enabled", beta_enabled );
     
      if ( !beta_enabled && Constants.IS_CVS_VERSION ){
       
        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

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

 
  public static void
  reportError(
    Throwable e )
  {
    MessageBoxShell mb =
      new MessageBoxShell(
        MessageText.getString("ConfigView.section.security.op.error.title"),
        MessageText.getString("ConfigView.section.security.op.error",
            new String[] {
              Debug.getNestedExceptionMessage(e)
            }),
        new String[] {
          MessageText.getString("Button.ok"),
        },
        0 );
   
    mb.open(null);
  }
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell

      case MSG_WORKING:
        style |= SWT.ICON_WORKING;
        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;
      case SWT.YES:
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.