Examples of waitUntilClosed()


Examples of org.apache.activemq.util.SocketProxy.waitUntilClosed()

                LOG.info("done async send");
            }
        });

        // will be closed by the plugin
        assertTrue("proxy was closed", proxy.waitUntilClosed(30));
        LOG.info("restarting proxy");
        proxy.open();

        assertTrue("message sent through failover", sendDoneLatch.await(30, TimeUnit.SECONDS));
View Full Code Here

Examples of org.apache.activemq.util.SocketProxy.waitUntilClosed()

                LOG.info("done async send");
            }
        });

        // will be closed by the plugin
        assertTrue("proxy was closed", proxy.waitUntilClosed(30));
        LOG.info("restarting proxy");
        proxy.open();

        assertTrue("message sent through failover", sendDoneLatch.await(30, TimeUnit.SECONDS));
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell.waitUntilClosed()

    mb.setDefaultButtonUsingStyle(SWT.OK);
    mb.setRememberOnlyIfButton(0);
    mb.setRemember("FilesView.messagebox.rename.id", true, null);
    mb.setLeftImage(SWT.ICON_WARNING);
    mb.open(null);
    return mb.waitUntilClosed() == SWT.OK;
  }

  // same code is used in tableitems.files.NameItem
  private static void moveFile(final DownloadManager manager,
      final DiskManagerFileInfo fileInfo, final File target) {
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell.waitUntilClosed()

            mb.setRememberOnlyIfButton(0);
            mb.setRemember("FilesView.messagebox.delete.id", false, null);
            mb.setLeftImage(SWT.ICON_WARNING);
            mb.open(null);

            boolean wants_to_delete = mb.waitUntilClosed() == SWT.OK;

            if ( wants_to_delete ){
             
              new_storage_type = compact_target;
             
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell.waitUntilClosed()

          | SWT.ICON_QUESTION, "OpenTorrentWindow.mb.askCreateDir",
          new String[] {
            file.toString()
          });
      mb.open(null);
      int doCreate = mb.waitUntilClosed();

      if (doCreate == SWT.YES)
        isPathInvalid = !FileUtil.mkdirs(file);
      else {
        cmbDataDir.setFocus();
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell.waitUntilClosed()

          | SWT.ICON_WARNING, "OpenTorrentWindow.mb.existingFiles",
          new String[] {
            sExistingFiles
          });
      mb.open(null);
      if (mb.waitUntilClosed() != SWT.OK) {
        return;
      }
    }

    String sDefaultPath = COConfigurationManager.getStringParameter(PARAM_DEFSAVEPATH);
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell.waitUntilClosed()

    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() {
    // problem with closing down web start as AWT threads don't close properly
    if (SystemProperties.isJavaWebStartInstance()) {
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell.waitUntilClosed()

    }

    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

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell.waitUntilClosed()

              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

Examples of org.gudy.azureus2.ui.swt.shells.MessageBoxShell.waitUntilClosed()

   
    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) {
    if (!(download instanceof DownloadImpl)) {return;}
    final DownloadManager dm = ((DownloadImpl)download).getDownload();
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.