Package sos.scheduler.editor.conf.listeners

Examples of sos.scheduler.editor.conf.listeners.ScriptListener


      comLanguage.setEnabled(true);
      final GridData gridData_4 = new GridData(GridData.BEGINNING, GridData.CENTER, true, true);
      gridData_4.widthHint = 60;
      comLanguage.setLayoutData(gridData_4);
      if(job.getChild("script")!=null) {
        ScriptListener scriptlistener = new ScriptListener(dom, job, Editor.SCRIPT, update);
        comLanguage.select(scriptlistener.getLanguage());
        if(scriptlistener.getLanguage() > 1) {
          txtInclude.setEditable(true);
          if(scriptlistener.getIncludes().length > 0) {
            txtInclude.setText(scriptlistener.getIncludes()[scriptlistener.getIncludes().length-1]);
          }
        } else {
          txtInclude.setEditable(false);
        }
      } else {
View Full Code Here


    } else {

      ExecuteListener executeListener = new ExecuteListener(dom, job);
      executeListener.setExecutable(false);

      ScriptListener scriptlistener = new ScriptListener(dom, job, Editor.SCRIPT, update);

      if(comLanguage.getSelectionIndex() > -1) {             
        scriptlistener.setLanguage(comLanguage.getSelectionIndex());
      }

      if(comLanguage.getSelectionIndex() > 1 && txtInclude.getText() != null && txtInclude.getText().trim().length() > 0) {
        //wurde eine neue include Datei angegeben
        if(scriptlistener.getIncludes().length == 0 || !scriptlistener.getIncludes()[scriptlistener.getIncludes().length-1].equals(txtInclude.getText()))
          scriptlistener.addInclude(txtInclude.getText());
      }

    }

  }
View Full Code Here

  public JobAssistentScriptForms(SchedulerDom dom_, ISchedulerUpdate update_, Element job_, int assistentType_) {
    dom = dom_;
    update = update_;
    assistentType = assistentType_;
    scriptlistener = new ScriptListener(dom, job_, Editor.SCRIPT, update);     
  }
View Full Code Here

    }


    public void setAttributes(SchedulerDom dom, Element element, int type_) {
     
        listener = new ScriptListener(dom, element, type_, update);
        cboFavorite.setData("favorites", favorites);
        if(type == Editor.MONITOR)
          cboFavorite.setMenu(new ContextMenu(cboFavorite, listener.getDom(), Editor.SCRIPT).getMenu());
        this.type = type_ ;
        fillForm();
View Full Code Here

TOP

Related Classes of sos.scheduler.editor.conf.listeners.ScriptListener

Copyright © 2018 www.massapicom. 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.