Examples of MessageBoxShell


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

        } catch (Exception e) {
          Debug.out(e);
        }
      } else {

        MessageBoxShell mb = new MessageBoxShell(SWT.OK | SWT.CANCEL
            | SWT.ICON_INFORMATION | SWT.APPLICATION_MODAL,
            "UIDebugGenerator.complete", new String[] {
              gr.file.toString()
            });
        mb.open(new UserPrompterResultListener() {
          public void prompterClosed(int result) {
            if (result == SWT.OK) {
              try {
                PlatformManagerFactory.getPlatformManager().showFile(
                    gr.file.getAbsolutePath());
View Full Code Here

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

    }
    if (textMessage.getText().length() > 0) {
      return true;
    }
   
    new MessageBoxShell(SWT.OK, "UIDebugGenerator.message.cancel",
        (String[]) null).open(null);

    return false;
  }
View Full Code Here

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

    item.setText("&CoreReq");
    item.addListener(SWT.Selection, new Listener() {
      public void handleEvent(Event event) {
        CoreWaiterSWT.waitForCoreRunning(new AzureusCoreRunningListener() {
          public void azureusCoreRunning(AzureusCore core) {
            new MessageBoxShell(0, "Done", "Core Now Avail").open(null);
          }
        });
      }
    });
   
View Full Code Here

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

        }

        if (blocked) {
          event.doit = false;
          new MessageBoxShell(SWT.OK, "URL blocked", "Tried to open "
              + event_location + " but it's blocked").open(null);
          browser.back();
        } else {
          if (UrlFilter.getInstance().isWhitelisted(event_location)) {
            lastValidURL = event_location;
View Full Code Here

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

        removeEntries(toRemove, nextIndex);
      }
      return;
    }

    MessageBoxShell mb = new MessageBoxShell(
        MessageText.getString("v3.activity.remove.title"),
        MessageText.getString("v3.activity.remove.text", new String[] {
          entry.getText()
        }));
    mb.setRemember(tableID + "-Remove", false,
        MessageText.getString("MessageBoxWindow.nomoreprompting"));

    if (startIndex == toRemove.length - 1) {
      mb.setButtons(0, new String[] {
        MessageText.getString("Button.yes"),
        MessageText.getString("Button.no"),
      }, new Integer[] {
        0,
        1
      });
      mb.setRememberOnlyIfButton(0);
    } else {
      mb.setButtons(1, new String[] {
        MessageText.getString("Button.removeAll"),
        MessageText.getString("Button.yes"),
        MessageText.getString("Button.no"),
      }, new Integer[] {
        2,
        0,
        1
      });
      mb.setRememberOnlyIfButton(1);
    }

    mb.setHandleHTML(false);
    mb.open(new UserPrompterResultListener() {
      public void prompterClosed(int result) {
        if (result == 2) {
          int numToRemove = toRemove.length - startIndex;
          VuzeActivitiesEntry[] toGroupRemove = new VuzeActivitiesEntry[numToRemove];
          System.arraycopy(toRemove, startIndex, toGroupRemove, 0, numToRemove);
View Full Code Here

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

                TOTorrent torrent = dm.getTorrent();
                String contentHash = PlatformTorrentUtils.getContentHash(torrent);
                if (contentHash != null && contentHash.length() > 0) {
                  ContentNetwork cn = DataSourceUtils.getContentNetwork(torrent);
                  if (cn == null) {
                    new MessageBoxShell(SWT.OK, "coq",
                        "Not in Content Network List").open(null);
                    return;
                  }
                  String url = cn.getTorrentDownloadService(contentHash, "coq");
                  DownloadUrlInfo dlInfo = new DownloadUrlInfoContentNetwork(
View Full Code Here

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

     
      String[] buttons = new String[(program == null ? 2 : 3)];
      buttons[0] = MessageText.getString(sPrefix + "button.guide");
      buttons[buttons.length-1] = MessageText.getString(sPrefix + "button.cancel");
     
      MessageBoxShell mb = null;
      if(program != null) {
        buttons[1] = MessageText.getString(sPrefix + "button.play");
        mb = new MessageBoxShell(MessageText.getString(sPrefix + "title"),
            MessageText.getString(sTextID, new String[] {
                  dm.getDisplayName(),
                  sFileType,
                  ext
                }), buttons, 0);
        mb.setRemember(sPrefix + ".remember_id", false, MessageText.getString(sPrefix
            + "remember"));
        mb.setRememberOnlyIfButton(1);
        mb.setRelatedObject(dm);
      } else {
        mb = new MessageBoxShell(MessageText.getString(sPrefix + "title"),
            MessageText.getString(sTextID, new String[] {
              dm.getDisplayName(),
              sFileType,
              ext
            }), buttons, 0);
        mb.setRelatedObject(dm);
      }

      reenableButton = false;
      mb.open(new UserPrompterResultListener() {
        public void prompterClosed(int i) {
          if(i == 0) {
            String url = MessageText.getString(sPrefix + "guideurl");
            if(UrlUtils.isURL(url)) {
              Utils.launch(url);
View Full Code Here

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

      return;
    }
    ManagerUtils.start(dm);

    String sPrefix = "v3.mb.PlayFileNotFound.";
    MessageBoxShell mb = new MessageBoxShell(
        MessageText.getString(sPrefix + "title"), MessageText.getString(sPrefix
            + "text", new String[] {
          dm.getDisplayName(),
        }), new String[] {
          MessageText.getString(sPrefix + "button.remove"),
          MessageText.getString(sPrefix + "button.redownload"),
          MessageText.getString("Button.cancel"),
        }, 2);
    mb.setRelatedObject(dm);
    mb.open(new UserPrompterResultListener() {
      public void prompterClosed(int i) {
        if (i == 0) {
          ManagerUtils.asyncStopDelete(dm, DownloadManager.STATE_STOPPED,
              true, false, null);
        } else if (i == 1) {
View Full Code Here

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

    list.put("remove", true);
  }
 
  public boolean toolBarItemActivated(String itemKey) {
    if (itemKey.equals("remove")) {
      MessageBoxShell mb =
        new MessageBoxShell(
          MessageText.getString("message.confirm.delete.title"),
          MessageText.getString("message.confirm.delete.text",
              new String[] {
                device.getName()
              }),
          new String[] {
            MessageText.getString("Button.yes"),
            MessageText.getString("Button.no")
          },
          1 );
     
      mb.open(new UserPrompterResultListener() {
        public void prompterClosed(int result) {
          if (result == 0) {
            device.remove();
          }
        }
View Full Code Here

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

              }
              alreadyFailing = true;

              String s = Debug.getNestedExceptionMessage(error);
             
              MessageBoxShell mb = new MessageBoxShell(
                  SWT.ICON_ERROR | SWT.OK,
                  "License Addition Error for " + licenceKey,
                  s );

              mb.open( new UserPrompterResultListener() {
                public void prompterClosed(int result) {
                  alreadyFailing = 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.