Package com.dubture.composer.ui.dialogs

Examples of com.dubture.composer.ui.dialogs.ScriptDialog.open()


      if (Arrays.asList(Scripts.getEvents()).contains(text)) {
        diag.setEvent(text);
      }
    }
   
    if (diag.open() == Dialog.OK) {
      composerPackage.getScripts().getAsArray(diag.getEvent()).add(diag.getHandler());
      refresh();
    }
  }
 
View Full Code Here


   
    // edit event
    if (Arrays.asList(Scripts.getEvents()).contains(text)) {
      diag.setEvent(text);
      diag.setHandlerEnabled(false);
      if (diag.open() == Dialog.OK) {
        String event = diag.getEvent();
        if (!event.equalsIgnoreCase(text)) {
          composerPackage.getScripts().set(event,
              composerPackage.getScripts().getAsArray(text));
          composerPackage.getScripts().remove(text);
View Full Code Here

    else {
      String event = controller.getText(controller.getParent(element));
      diag.setEvent(event);
      diag.setHandler(text);
      diag.setEventEnabled(false);
      if (diag.open() == Dialog.OK) {
        String handler = diag.getHandler();
        if (!handler.equalsIgnoreCase(text)) {
          JsonArray events = composerPackage.getScripts().getAsArray(event);
          events.replace(text, handler);
        }
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.