Package sos.scheduler.editor.conf.forms

Examples of sos.scheduler.editor.conf.forms.SchedulerForm


    //ende test
   
    if(what.equals(DELETE))
      return;

    SchedulerForm form =(SchedulerForm)MainWindow.getContainer().getCurrentEditor();
    form.setChangedTreeItemText(which + "_" + name);

   
  }
View Full Code Here


    pSaveAsHotFolderElement.setEnabled(false);
    pSaveAsHotFolderElement.addSelectionListener(new org.eclipse.swt.events.SelectionListener() {
      public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {

        if (container.getCurrentEditor() != null && container.getCurrentEditor().applyChanges()) {
          SchedulerForm form =(SchedulerForm)container.getCurrentEditor();
          SchedulerDom currdom = (SchedulerDom)form.getDom();
          if(IOUtils.saveDirectory(currdom, true, SchedulerDom.DIRECTORY, null, container)) {
            Element root = currdom.getRoot();
            if(root != null) {
              Element config = root.getChild("config");
              if(config != null) {
                config.removeChildren("jobs");               
                config.removeChildren("job_chains");
                config.removeChildren("locks");
                Utils.removeChildrensWithName(config, "process_classes");
                config.removeChildren("schedules");
                config.removeChildren("commands");
                form.updateTree("main");
                form.update();
              }
            }
          }
          container.getCurrentEditor().save();
          setSaveStatus();
View Full Code Here

      public void widgetSelected(final SelectionEvent e) {
        int c = MainWindow.message("Do you want to reload the configuration and loose the changes?", SWT.ICON_INFORMATION | SWT.YES | SWT.NO);
        if(c != SWT.YES)
          return;
        if(container.getCurrentEditor() instanceof SchedulerForm) {         
          SchedulerForm form =(SchedulerForm)container.getCurrentEditor();
          SchedulerDom currdom = (SchedulerDom)form.getDom();
          if(currdom.isLifeElement())
            sos.scheduler.editor.app.Utils.reset( currdom.getRoot(), form, currdom);
          else
            sos.scheduler.editor.app.Utils.reset( currdom.getRoot().getChild("config"), form, currdom);

        } else if(container.getCurrentEditor() instanceof sos.scheduler.editor.actions.forms.ActionsForm) {
          sos.scheduler.editor.actions.forms.ActionsForm form =( sos.scheduler.editor.actions.forms.ActionsForm)container.getCurrentEditor();
          sos.scheduler.editor.actions.ActionsDom currdom = ( sos.scheduler.editor.actions.ActionsDom)form.getDom();
          sos.scheduler.editor.app.Utils.reset( currdom.getRoot(),form, currdom);
        } else if(container.getCurrentEditor() instanceof sos.scheduler.editor.doc.forms.DocumentationForm) {
          sos.scheduler.editor.doc.forms.DocumentationForm form =( sos.scheduler.editor.doc.forms.DocumentationForm)container.getCurrentEditor();
          sos.scheduler.editor.doc.DocumentationDom currdom = ( sos.scheduler.editor.doc.DocumentationDom)form.getDom();
          sos.scheduler.editor.app.Utils.reset( currdom.getRoot(),form, currdom);
        }

      }
      public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e) {
View Full Code Here

  public static DomParser getSpecifiedDom() {

    DomParser currdom = null;
    if(MainWindow.getContainer().getCurrentEditor() instanceof SchedulerForm) {
      SchedulerForm form =(SchedulerForm)MainWindow.getContainer().getCurrentEditor();     
      currdom = (SchedulerDom)form.getDom();
    } else if(MainWindow.getContainer().getCurrentEditor() instanceof DocumentationForm) {
      DocumentationForm form =(DocumentationForm)MainWindow.getContainer().getCurrentEditor();     
      currdom = (DocumentationDom)form.getDom();
    } else if(MainWindow.getContainer().getCurrentEditor() instanceof JobChainConfigurationForm) {
      JobChainConfigurationForm form =(JobChainConfigurationForm)MainWindow.getContainer().getCurrentEditor();
      currdom = (DetailDom)form.getDom();
    }else if(MainWindow.getContainer().getCurrentEditor() instanceof ActionsForm) {
      ActionsForm form =(ActionsForm)MainWindow.getContainer().getCurrentEditor();
      currdom = (ActionsDom)form.getDom();
    } else {
      MainWindow.message("Could not save FTP File. <unspecified type>  ", SWT.ICON_WARNING);
    }
    return currdom;
  }
View Full Code Here

  private void startWizzard() {

    try {           
      Utils.startCursor(sShell);           
      SchedulerForm _scheduler = container.newScheduler(SchedulerDom.LIFE_JOB);
      if (_scheduler  != null)
        setSaveStatus();
      JobAssistentForm assitent = new JobAssistentForm(_scheduler.getDom(), _scheduler);
      assitent.startJobAssistant();
      setSaveStatus();
    } catch (Exception ex) {
      try {
        new sos.scheduler.editor.app.ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName() + " ; could not start assistent." , ex);
View Full Code Here

                    ((SchedulerDom)dom).getHotFolderFiles().remove(delFile.getName());
                  }                 
                }

                if(changeFiles.size() > 0 || newFFiles.size() > 0 || delFFiles.size() > 0) {
                  SchedulerForm form =(SchedulerForm)container.getCurrentEditor();
                  form.updateTree("main");
                  //form.updateCommands();
                  form.update();
                  dom.readFileLastModified();
                }

              } else {

                if(delFFiles.size() > 0) {
                  //current Tabraiter  soll geschlossen werden weil die Kpnfigurationsdatei ausserhalb gel�scht wurden
                  MainWindow.getContainer().getCurrentTab().dispose();
                  return;
                }
               
                dom.read(dom.getFilename());
               

                if (container.getCurrentEditor() instanceof SchedulerForm) {             
                  SchedulerForm form =(SchedulerForm)container.getCurrentEditor();
                  form.updateTree("main");
                  form.update();
                } else if (container.getCurrentEditor() instanceof DocumentationForm) {
                  DocumentationForm form =(DocumentationForm)container.getCurrentEditor();
                  form.updateTree("main");
                  form.update();
                } else if (container.getCurrentEditor() instanceof ActionsForm) {
                  ActionsForm form =(ActionsForm)container.getCurrentEditor();
                  form.updateTree("main");
                  form.update();
                }
                //dom.setFileLastModified(f.lastModified());

                //System.out.println("neu= " + f.lastModified());
                //System.out.println("neu= " + dom.getFileLastModified());
View Full Code Here

      SchedulerDom currdom = (SchedulerDom)form.getDom();
       */

      DomParser currdom = null;
      if(MainWindow.getContainer().getCurrentEditor() instanceof SchedulerForm) {
        SchedulerForm form =(SchedulerForm)MainWindow.getContainer().getCurrentEditor();     
        currdom = (SchedulerDom)form.getDom();
      } else if(MainWindow.getContainer().getCurrentEditor() instanceof DocumentationForm) {
        DocumentationForm form =(DocumentationForm)MainWindow.getContainer().getCurrentEditor();     
        currdom = (DocumentationDom)form.getDom();
      } else if(MainWindow.getContainer().getCurrentEditor() instanceof JobChainConfigurationForm) {
        JobChainConfigurationForm form =(JobChainConfigurationForm)MainWindow.getContainer().getCurrentEditor();
        currdom = (DetailDom)form.getDom();
      }

      //if(currdom.getFilename() != null && !new File(currdom.getFilename()).delete())
      //  System.out.println(currdom.getFilename() + " could not delete");


      if( currdom instanceof SchedulerDom && ((SchedulerDom)currdom).isLifeElement()) {
        File f = new File(newFilename);
        if(f.isFile())
          newFilename = f.getParent();

        localfilename = newFilename;

        currdom.setFilename(new java.io.File(newFilename).getParent());
        String attrName = f.getName().substring(0, f.getName().indexOf("."+ currdom.getRoot().getName()));

        if(currdom.getRoot().getName().equals("order")) {
          Utils.setAttribute("job_chain", attrName.substring(0, attrName.indexOf(",")) , currdom.getRoot());
          Utils.setAttribute("id",attrName.substring(attrName.indexOf(",")+1), currdom.getRoot());
        } else {
          Utils.setAttribute("name", attrName, currdom.getRoot());
        }
        if (MainWindow.getContainer().getCurrentEditor().save()) {
          MainWindow.getContainer().getCurrentTab().setData("webdav_profile_name", listener.getCurrProfileName());
          MainWindow.getContainer().getCurrentTab().setData("webdav_profile", listener.getCurrProfile());     
          MainWindow.getContainer().getCurrentTab().setData("webdav_title", "[WebDav::"+listener.getCurrProfileName()+"]");
          MainWindow.getContainer().getCurrentTab().setData("webdav_remote_directory", txtUrl.getText() + "/" + txtFilename.getText());
          MainWindow.setSaveStatus()

        }

        currdom.setFilename(new java.io.File(newFilename).getCanonicalPath());

        sos.scheduler.editor.app.IContainer con = MainWindow.getContainer();
        SchedulerForm sf = (SchedulerForm)(con.getCurrentEditor());
        sf.updateTree("jobs");
        String name = currdom.getRoot().getName();
        name = name.substring(0, 1).toUpperCase() + name.substring(1);
        sf.updateTreeItem(name + ": " + attrName);


      } else if( currdom instanceof SchedulerDom && ((SchedulerDom)currdom).isDirectory()) {
        if (MainWindow.getContainer().getCurrentEditor().save()) {
          /*ArrayList list = new ArrayList();
View Full Code Here

        XPath x3 = XPath.newInstance("//job[@name='"+ name + "']");        
        List listOfElement_3 = x3.selectNodes(_dom.getDoc());                

        if(!listOfElement_3.isEmpty()) {   

          SchedulerForm f = (SchedulerForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          for(int i = 0; i < tree.getItemCount(); i++) {           
            TreeItem item = tree.getItem(i);
            if(item.getText().equals(SchedulerListener.JOBS)){

              TreeItem[] jobsItem = item.getItems();
              for(int j = 0; j < jobsItem.length; j++) {
                TreeItem jItem = jobsItem[j];
                //if(jItem.getText().equals("Job: "+ name)){
                if(jItem.getText().endsWith("Job: "+ name)){
                  tree.setSelection(new TreeItem [] {jItem});
                  f.updateTreeItem(jItem.getText());
                  f.updateTree("jobs");
                  break;
                }
              }
            }
          }
        }
      } else if(type==Editor.MONITOR) {

        String[] split = name.split("_@_");
        String jobname = split[0];
        String monitorname = split[1];

        XPath x3 = XPath.newInstance("//job[@name='"+ jobname + "']/monitor[@name='"+ monitorname + "']");        
        List listOfElement_3 = x3.selectNodes(_dom.getDoc());                

        if(!listOfElement_3.isEmpty()) {   

          SchedulerForm f = (SchedulerForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          //if(tree.getSelection()[0].getText().equals("Monitor")){
          if(tree.getSelection()[0].getText().equals(SchedulerListener.MONITOR)){
            TreeItem[] monitorsItem = tree.getSelection()[0].getItems();
            for(int k = 0; k < monitorsItem.length; k++) {
              TreeItem monitor = monitorsItem[k];

              if(monitor.getText().equals(monitorname)){
                //if(jItem.getText().endsWith("Job: "+ name)){
                tree.setSelection(new TreeItem [] {monitor});
                f.updateTreeItem(monitorname);
                f.updateTree("monitor");
                break;
              }
            }
          } else {
            for(int i = 0; i < tree.getItemCount(); i++) {           
              TreeItem item = tree.getItem(i);
              if(item.getText().equals(SchedulerListener.JOB + jobname)){
                TreeItem[] jobsItem = item.getItems();
                for(int j = 0; j < jobsItem.length; j++) {
                  TreeItem jItem = jobsItem[j];
                  if(jItem.getText().equals("Monitor")){
                    TreeItem[] monitorsItem = jItem.getItems();
                    for(int k = 0; k < monitorsItem.length; k++) {
                      TreeItem monitor = monitorsItem[k];

                      if(monitor.getText().equals(monitorname)){
                        //if(jItem.getText().endsWith("Job: "+ name)){
                        tree.setSelection(new TreeItem [] {monitor});
                        f.updateTreeItem(monitorname);
                        f.updateTree("monitor");
                        break;
                      }
                    }
                  }
                }
              }
            }
          }
        }

      } else if(type==Editor.JOB_CHAIN) {

        XPath x3 = XPath.newInstance("//job_chain[@name='"+ name + "']");        
        List listOfElement_3 = x3.selectNodes(_dom.getDoc());
        if(!listOfElement_3.isEmpty()) {         
          SchedulerForm f = (SchedulerForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          for(int i = 0; i < tree.getItemCount(); i++) {           
            TreeItem item = tree.getItem(i);
            if(item.getText().equals(SchedulerListener.JOB_CHAINS)){
              TreeItem[] jobsItem = item.getItems();
              for(int j = 0; j < jobsItem.length; j++) {
                TreeItem jItem = jobsItem[j];
                //if(jItem.getText().equals("Job Chain: "+ name)){
                if(jItem.getText().endsWith("Job Chain: "+ name)){
                  tree.setSelection(new TreeItem [] {jItem});
                  f.updateTreeItem(jItem.getText());
                  f.updateTree("");
                  break;
                }
              }
            }
          }
        }

      } else if (type == Editor.PROCESS_CLASSES) {

        XPath x3 = XPath.newInstance("//process_class[@name='"+ name + "']");        
        List listOfElement_3 = x3.selectNodes(_dom.getDoc());
        if(!listOfElement_3.isEmpty()) {         
          SchedulerForm f = (SchedulerForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          for(int i = 0; i < tree.getItemCount(); i++) {           
            TreeItem item = tree.getItem(i);
            //if(item.getText().equals("Process Classes")){
            if(item.getText().endsWith("Process Classes")){
              tree.setSelection(new TreeItem [] {item});
              f.updateTreeItem(item.getText());
              f.updateTree("");               
              break;
            }
          }
        }
      } else if(type==Editor.SCHEDULE) {

        XPath x3 = XPath.newInstance("//schedule[@name='"+ name + "']");        
        List listOfElement_3 = x3.selectNodes(_dom.getDoc());
        if(!listOfElement_3.isEmpty()) {         
          SchedulerForm f = (SchedulerForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          for(int i = 0; i < tree.getItemCount(); i++) {           
            TreeItem item = tree.getItem(i);
            if(item.getText().equals(SchedulerListener.SCHEDULES)){

              TreeItem[] items = item.getItems();
              for(int j = 0; j < items.length; j++) {
                TreeItem jItem = items[j];
                //if(jItem.getText().equals(name)){
                if(jItem.getText().endsWith(name)){
                  tree.setSelection(new TreeItem [] {jItem});
                  f.updateTreeItem(jItem.getText());
                  f.updateTree("");
                  break;
                }
              }
            }
          }
        }

      } else if(type == Editor.ORDER) {

        XPath x3 = XPath.newInstance("//order[@id='"+ name + "']");        
        List listOfElement_3 = x3.selectNodes(_dom.getDoc());

        if(listOfElement_3.isEmpty()) {
          x3 = XPath.newInstance("//add_order[@id='"+ name + "']");        
          listOfElement_3 = x3.selectNodes(_dom.getDoc());
        }

        if(!listOfElement_3.isEmpty()) {         
          SchedulerForm f = (SchedulerForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          for(int i = 0; i < tree.getItemCount(); i++) {           
            TreeItem item = tree.getItem(i);
            if(item.getText().equals(SchedulerListener.ORDERS)){

              TreeItem[] items = item.getItems();
              for(int j = 0; j < items.length; j++) {
                TreeItem jItem = items[j];
                //if(jItem.getText().equals("Order: " + name)){
                if(jItem.getText().endsWith("Order: " + name)){
                  tree.setSelection(new TreeItem [] {jItem});
                  f.updateTreeItem(jItem.getText());
                  f.updateTree("");
                  break;
                }
              }
            }
          }
        }

      } else if(type == Editor.WEBSERVICE) {

        XPath x3 = XPath.newInstance("//web_service[@name='"+ name + "']");        
        List listOfElement_3 = x3.selectNodes(_dom.getDoc());       

        if(!listOfElement_3.isEmpty()) {         
          SchedulerForm f = (SchedulerForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          for(int i = 0; i < tree.getItemCount(); i++) {           
            TreeItem item = tree.getItem(i);
            if(item.getText().equals(SchedulerListener.HTTP_SERVER)){
              for(int k = 0; k < item.getItemCount(); k++) {   
                TreeItem httpItem = item.getItem(k);

                if(httpItem.getText().equals(SchedulerListener.WEB_SERVICES)){

                  TreeItem[] items = httpItem.getItems();
                  for(int j = 0; j < items.length; j++) {
                    TreeItem jItem = items[j];
                    if(jItem.getText().equals("Web Service: " + name)){
                      tree.setSelection(new TreeItem [] {jItem});
                      f.updateTreeItem(jItem.getText());
                      f.updateTree("");
                      break;
                    }
                  }
                }
              }
            }
          }
        }
      } else if (type == Editor.ACTIONS) {


        XPath x3 = XPath.newInstance("//action[@name='"+ name + "']");        
        List listOfElement_3 = x3.selectNodes(_dom.getDoc());
        if(!listOfElement_3.isEmpty()) {         
          ActionsForm f = (ActionsForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          for(int i = 0; i < tree.getItemCount(); i++) {           
            TreeItem item = tree.getItem(i);
            if(item.getText().equals("Actions")){
              TreeItem[] jobsItem = item.getItems();
              for(int j = 0; j < jobsItem.length; j++) {
                TreeItem jItem = jobsItem[j];
                //if(jItem.getText().equals("Job Chain: "+ name)){
                if(jItem.getText().endsWith(sos.scheduler.editor.actions.listeners.ActionsListener.ACTION_PREFIX + name)){
                  tree.setSelection(new TreeItem [] {jItem});
                  f.updateTreeItem(jItem.getText());
                  f.updateTree("");
                  break;
                }
              }
            }
          }
        }
      } else if(type == Editor.EVENTS) {
        //<event_group logic="or" group="1">
        XPath x3 = XPath.newInstance("//event_group[@group='"+ name + "']");   


        List listOfElement_3 = x3.selectNodes(_dom.getDoc());
        if(!listOfElement_3.isEmpty()) {         
          ActionsForm f = (ActionsForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          if(tree.getSelectionCount() > 0) {
            TreeItem itemp = tree.getSelection()[0];
            for(int i = 0; i < itemp.getItemCount(); i++) {           
              TreeItem item = itemp.getItem(i);
              if(item.getText().endsWith(sos.scheduler.editor.actions.listeners.ActionsListener.GROUP_PREFIX + name)){
                tree.setSelection(new TreeItem [] {item});
                f.updateTreeItem(item.getText());
                f.updateTree("");
                break;
              }
            }
          }           
        }
      } else if(type == Editor.ACTION_COMMANDS) {
        XPath x3 = XPath.newInstance("//command[@name='"+ name + "']");   


        List listOfElement_3 = x3.selectNodes(_dom.getDoc());
        if(!listOfElement_3.isEmpty()) {         
          ActionsForm f = (ActionsForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          if(tree.getSelectionCount() > 0) {
            TreeItem itemp = tree.getSelection()[0];
            for(int i = 0; i < itemp.getItemCount(); i++) {           
              TreeItem item = itemp.getItem(i);
              if(item.getText().endsWith(sos.scheduler.editor.actions.listeners.ActionsListener.COMMAND_PREFIX + name)){
                tree.setSelection(new TreeItem [] {item});
                f.updateTreeItem(item.getText());
                f.updateTree("");
                break;
              }
            }
          }           
        }
      } else if (type == Editor.JOB_COMMAND_EXIT_CODES &&
          sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor() instanceof ActionsForm){


        XPath x3 = null;
        String job = "";
        if(name.startsWith("start_job")) {
          job = name.substring("start_job: ".length());
          x3 = XPath.newInstance("//command/start_job[@job='"+ job + "']");

        } else {
          String child = name.substring(0, name.indexOf(": "));
          job = name.substring(child.length() + 2);
          x3 = XPath.newInstance("//command/"+child+"[@job_chain='"+ job + "']");           

        }


        List listOfElement_3 = x3.selectNodes(_dom.getDoc());
        if(!listOfElement_3.isEmpty()) {         
          ActionsForm f = (ActionsForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          if(tree.getSelectionCount() > 0) {
            TreeItem itemp = tree.getSelection()[0];
            for(int i = 0; i < itemp.getItemCount(); i++) {           
              TreeItem item = itemp.getItem(i);
              if(item.getText().equals(name)){
                tree.setSelection(new TreeItem [] {item});
                f.updateTreeItem(item.getText());
                f.updateTree("");
                break;
              }
            }
          }           
        }
      } else if (type == Editor.JOB_COMMAND_EXIT_CODES &&
          sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor() instanceof SchedulerForm){


        XPath x3 = null;
        String job = "";
        if(name.startsWith("start_job")) {
          job = name.substring("start_job: ".length());
          x3 = XPath.newInstance("//commands/start_job[@job='"+ job + "']");

        } else {
          String child = name.substring(0, name.indexOf(": "));
          job = name.substring(child.length() + 2);
          x3 = XPath.newInstance("//commands/"+child+"[@job_chain='"+ job + "']");           

        }


        List listOfElement_3 = x3.selectNodes(_dom.getDoc());
        if(!listOfElement_3.isEmpty()) {         
          SchedulerForm f = (SchedulerForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
          if(f == null)
            return;
          Tree tree = f.getTree();
          if(tree.getSelectionCount() > 0) {
            TreeItem itemp = tree.getSelection()[0];
            for(int i = 0; i < itemp.getItemCount(); i++) {           
              TreeItem item = itemp.getItem(i);
              if(item.getText().equals(name)){
                tree.setSelection(new TreeItem [] {item});
                f.updateTreeItem(item.getText());
                f.updateTree("");
                break;
              }
            }
          }           
        }

      } else if(type == Editor.JOB_COMMAND) {
        SchedulerForm f = (SchedulerForm)(sos.scheduler.editor.app.MainWindow.getContainer().getCurrentEditor());
        if(f == null)
          return;

        Tree tree = f.getTree();
        if(tree.getSelectionCount() > 0) {
          TreeItem itemp = tree.getSelection()[0];
          for(int i = 0; i < itemp.getItemCount(); i++) {           
            TreeItem item = itemp.getItem(i);
            if(item.getText().equals(name)){
              tree.setSelection(new TreeItem [] {item});
              f.updateTreeItem(item.getText());
              f.updateTree("");
              break;
            }
          }
        }
View Full Code Here

        }

        currdom.setFilename(new java.io.File(newFilename).getCanonicalPath());

        sos.scheduler.editor.app.IContainer con = MainWindow.getContainer();
        SchedulerForm sf = (SchedulerForm)(con.getCurrentEditor());
        sf.updateTree("jobs");
        String name = currdom.getRoot().getName();
        name = name.substring(0, 1).toUpperCase() + name.substring(1);
        sf.updateTreeItem(name + ": " + attrName);


      } else if( currdom instanceof SchedulerDom && ((SchedulerDom)currdom).isDirectory()) {
        if (MainWindow.getContainer().getCurrentEditor().save()) {
          ArrayList newlist = listener.getCurrProfile().saveHotFolderAs(localfilename, file);
View Full Code Here

  }

  private void refreshTree(String whichItem) {

    sos.scheduler.editor.app.IContainer con = MainWindow.getContainer();
    SchedulerForm sf = (SchedulerForm)(con.getCurrentEditor());
    sf.updateTree(whichItem);

  }
View Full Code Here

TOP

Related Classes of sos.scheduler.editor.conf.forms.SchedulerForm

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.