Package shared

Examples of shared.NSAlertBox.go()


      @Override
      public void widgetSelected(SelectionEvent e)
      {
        super.widgetSelected(e);
        NSAlertBox infoAlert = new NSAlertBox("Timestamp Formatting","The formatting is based on the SimpleDateFormat in Java. Here are some common pattern letters:\n\nY = Year\nM = Month in year\nd = Day in month\nE = Day name in week\na = Am/pmmarker\nH = Hour in day(0-23)\nh = Hour in am/pm(1-12)\nm = Minute in hour\ns = Second inminute\nS = Millisecond\n\nFor more information, check http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html",SWT.ICON_QUESTION|SWT.OK);
        infoAlert.go();
       
      }
    });
   
    Label lblPreview1 = new Label(this, SWT.NONE);
View Full Code Here


      @Override
      public void widgetSelected(SelectionEvent e)
      {
        super.widgetSelected(e);
        NSAlertBox infoAlert = new NSAlertBox("Message Formatting","These are the components you can use in the formatting of your message output:\nChannel - %chan%\nUser Level(op, voice, etc) - %lvl%\nMessage Content- %msg%\nNickname - %nick%\nTimestamp - %time%",SWT.ICON_QUESTION|SWT.OK);
        infoAlert.go();
       
      }
    });
//    Button btnSave = new Button(this, SWT.NONE);
//    btnSave.addSelectionListener(new SelectionAdapter() {
View Full Code Here

        return (Settings)xstream.fromXML(new FileInputStream(filename));
      } catch (Exception e) {
        org.apache.log4j.Logger fLog = org.apache.log4j.Logger.getLogger("log.settings");
        fLog.error("Unable to load settings, resetting to default.", e);
        NSAlertBox alert = new NSAlertBox("Unable to load settings","The file settings.xml was corrupted or was not formatted correctly. Settings have reverted to their defaults.",SWT.OK,SWT.ICON_WARNING);
        alert.go();
        Settings defaultSettings = new Settings();
        settings = defaultSettings;
        writeToFile();
        return defaultSettings;
      }
View Full Code Here

        RoomManager.getMain().getDisplay().asyncExec(new Runnable(){

          @Override
          public void run() {
            NSAlertBox a = new NSAlertBox("Delete Scripts", "Are you sure you want to delete the selected files? You can always uncheck them to not use them!", SWT.ICON_QUESTION, SWT.YES|SWT.NO);
            if(a.go() == SWT.YES){
              for(TreeItem s : tree.getSelection()){
                ((Script)s.getData()).getReference().delete();
              }
            }
             
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.