Package org.eclipse.swt.widgets

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


        String server_ip = text_server_ip.getText();
        if (!AddressUtils.isValidIP(server_ip)) {
          MessageBox dialog = new MessageBox(shell,
                      SWT.OK | SWT.ICON_WARNING);
          dialog.setMessage(Localizer._("serveraddwindow.wrong_server_address"));
          dialog.open();
          return ;
        }
       
        if (!AddressUtils.isValidPort(text_port.getText())) {
          MessageBox dialog = new MessageBox(shell,
View Full Code Here


       
        if (!AddressUtils.isValidPort(text_port.getText())) {
          MessageBox dialog = new MessageBox(shell,
          SWT.OK | SWT.ICON_WARNING);
          dialog.setMessage(Localizer._("serveraddwindow.wrong_server_port"));
          dialog.open();
          return ;
        }
        int server_port = Integer.parseInt(text_port.getText());
        try {
          _core.getServerManager().newServer(server_ip, server_port);
View Full Code Here

  public static boolean showConfirmMessage(Shell shell, String title,String message) {
    MessageBox dialog = new MessageBox(shell,
                SWT.YES | SWT.NO | SWT.ICON_WARNING);
    dialog.setText(title);
    dialog.setMessage(message);
    int result = dialog.open();
    return result==SWT.YES;
  }
 
  public static void showWarningMessage(Shell shell,String title,String message) {
    MessageBox dialog = new MessageBox(shell,
View Full Code Here

  public static void showWarningMessage(Shell shell,String title,String message) {
    MessageBox dialog = new MessageBox(shell,
                SWT.OK | SWT.ICON_WARNING);
    dialog.setText(title);
    dialog.setMessage(message);
    dialog.open();
  }
 
  public static void showErrorMessage(Shell shell, String title, String message) {
    MessageBox dialog = new MessageBox(shell,
         SWT.OK | SWT.ICON_ERROR);
View Full Code Here

  public static void showErrorMessage(Shell shell, String title, String message) {
    MessageBox dialog = new MessageBox(shell,
         SWT.OK | SWT.ICON_ERROR);
    dialog.setText(title);
    dialog.setMessage(message);
    dialog.open();
  }
 
  public static void setClipBoardText(String text) {
    final Clipboard cb = new Clipboard(SWTThread.getDisplay());
    final TextTransfer transfer = TextTransfer.getInstance();
View Full Code Here

      public void run() {
        MessageBox box = new MessageBox(window.getShell(), SWT.ICON_WARNING | SWT.OK | SWT.CANCEL);
        box.setText("Unable to Launch External Browser");
        box.setMessage("RSSOwl is unable to launch the external browser. Please configure it and try again.");

        if (box.open() == SWT.OK)
          PreferencesUtil.createPreferenceDialogOn(window.getShell(), MiscPreferencePage.ID, null, null).open();
      }
    });
  }
View Full Code Here

        /* Ask for Confirmation if file exists */
        if (file.exists()) {
          MessageBox box = new MessageBox(fShell, SWT.ICON_WARNING | SWT.YES | SWT.NO);
          box.setMessage("The folder already contains a file named '" + file.getName() + "'.\n\nReplace the existing file?");
          box.setText("Confirm Replace");
          if (box.open() != SWT.YES)
            return;
        }

        /* Proceed Exporting */
        Long selectedRootFolderID = DynamicDAO.getDAO(IPreferenceDAO.class).load(BookMarkExplorer.PREF_SELECTED_BOOKMARK_SET).getLong();
View Full Code Here

        /* Ask for Confirmation if file exists */
        if (file.exists()) {
          MessageBox box = new MessageBox(fShell, SWT.ICON_WARNING | SWT.YES | SWT.NO);
          box.setMessage("The folder already contains a file named '" + file.getName() + "'.\n\nReplace the existing file?");
          box.setText("Confirm Replace");
          if (box.open() != SWT.YES)
            return;
        }

        /* Proceed Exporting */
        Set<IFolder> rootFolders = Controller.getDefault().getCacheService().getRootFolders();
View Full Code Here

      public void run() {
        MessageBox box = new MessageBox(window.getShell(), SWT.ICON_WARNING | SWT.OK | SWT.CANCEL);
        box.setText(Messages.BrowserUtils_ERROR_LAUNCH_BROWSER);
        box.setMessage(Messages.BrowserUtils_ERROR_LAUNCH_BROWSER_MSG);

        if (box.open() == SWT.OK)
          PreferencesUtil.createPreferenceDialogOn(window.getShell(), BrowserPreferencePage.ID, null, null).open();
      }
    });
  }
View Full Code Here

      fBrowser = createBrowser(parent, style);
    } catch (SWTError e) {
      MessageBox box = new MessageBox(parent.getShell(), SWT.ICON_ERROR | SWT.OK | SWT.CANCEL);
      box.setText(Messages.CBrowser_ERROR_CREATE_BROWSER);
      box.setMessage(Messages.CBrowser_ERROR_CREATE_BROWSER_MSG);
      if (box.open() == SWT.OK)
        BrowserUtils.openLinkExternal("http://www.rssowl.org/help"); //$NON-NLS-1$

      throw e;
    }
    fLinkHandler = new HashMap<String, ILinkHandler>();
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.