Package org.eclipse.swt.widgets

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


    private void notifyError( String message )
    {
        MessageBox messageBox = new MessageBox( PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), SWT.OK
            | SWT.ICON_ERROR );
        messageBox.setMessage( message );
        messageBox.open();
    }
}
View Full Code Here


      messageBox
          .setMessage("The libraries necessary to run indic-keyboards are missing.\n"
              + "Please put the "
              + windowsSysHookLibraryName
              + " in the program folder.");
      messageBox.open();
      shell.dispose();
      System.exit(0);
    }
  }
View Full Code Here

              + "another instance isn't running, close any connections on port "
              + portNumber
              + " and try again."
              + " Alternatively, you can view the preferences.conf file to check the"
              + " port number.");
      messageBox.open();
      shell.dispose();
      System.exit(0);

    }
    /*
 
View Full Code Here

              | SWT.ICON_QUESTION);
          messageBox.setText("Open Browser");

          messageBox
              .setMessage("Dou you want to open indic-keyboards' webpage??\n\n(Opens in the default internet browser)");
          int rCode = messageBox.open();
          if (rCode == SWT.YES) {
            /*
             * Opens the default browser. Or any program which opens
             * .html files by default
             */
 
View Full Code Here

                    + "\n\nIf the application doesn't close\nwhen Exit is selected, "
                    + "kill the process.\n\n(The process ID is "
//                    + pid.substring(0, index)
                    + ")");
          }
          int rCode = messageBox.open();
          if (rCode == SWT.YES) {
            image.dispose();
            shell.dispose();
            display.dispose();
            /*
 
View Full Code Here

            MessageBox messageBox = new MessageBox(sh, SWT.OK
                | SWT.ICON_ERROR);
            messageBox.setText("Help File Not Found");
            messageBox
                .setMessage("index.html not found! Make sure it is present in docs\ndirectory");
            messageBox.open();
          } else {
            Program pBrowse = Program.findProgram(".html");
            pBrowse.execute("./docs/index.html");
          }
View Full Code Here

                    File file = new File(fileName);
                    if (!file.exists()) {
                        // The file does not exist; yell at the user and try again
                        MessageBox mb = new MessageBox(importDialog.getParent(), SWT.ICON_ERROR | SWT.OK);
                        mb.setMessage(fileName + Messages.ValidationDialog_fileNotExist);
                        mb.open();
                    } else {
                        // File exists, so we're good to go
                        done = true;
                    }
                }
View Full Code Here

            TestSuiteDTO testSuite = (TestSuiteDTO) processor.getTestSuiteDTOs().get(defaultTestSuite);
            //testSuite is empty?
            if (testSuite.getTests().size() == 0) {
                MessageBox mb = new MessageBox( display.getActiveShell(), SWT.ICON_ERROR  | SWT.OK);
                mb.setMessage(Messages.ValidationDialog_noSuitePre+defaultTestSuite+Messages.ValidationDialog_noSuiteSuf)
                mb.open();
                return;
            }
            //check the testSuite to ensure that none of the arguments of a test are null
            if (!DTOUtils.noNullArguments(testSuite)) return;
            //select the file to export to
View Full Code Here

   
                    mb.setMessage(fileName + Messages.ValidationDialog_fileExists);
   
                    // If they click Yes, we're done and we drop out. If
                    // they click No, we redisplay the File Dialog
                    done = mb.open() == SWT.YES;
                  } else {
                    // File does not exist, so we're good to go
                    done = true;
                  }
                }
View Full Code Here

                public void widgetSelected( SelectionEvent e ) {
                    String text = placesText.getText();
                    if (text.length() < 3) {
                        MessageBox msgBox = new MessageBox(placesText.getShell(), SWT.ICON_WARNING);
                        msgBox.setMessage("At least 3 letters are needed to do a search.");
                        msgBox.open();
                        return;
                    }

                    List<String> matchedList = new ArrayList<String>();
                    for( String name : keySet ) {
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.