Package sos.scheduler.editor.doc.forms

Examples of sos.scheduler.editor.doc.forms.DocumentationForm


    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


                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

      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");
View Full Code Here

      return null;
  }


  public DocumentationForm newDocumentation() {
    DocumentationForm doc = new DocumentationForm(this, folder, SWT.NONE);
    doc.openBlank();
    newItem(doc, NEW_DOCUMENTATION_TITLE);
    return doc;
  }
View Full Code Here

  }


  public DocumentationForm openDocumentation(){
    try {
      DocumentationForm doc = new DocumentationForm(this, folder, SWT.NONE);
      if (doc.open(filelist)) {
        //CTabItem tab = newItem(doc, doc.getFilename());
        newItem(doc, doc.getFilename());
        return doc;
      } else
        return null;
    } catch (Exception e) {
      try {
View Full Code Here

  }

 
  public DocumentationForm openDocumentation(String filename){
    try {
      DocumentationForm doc = new DocumentationForm(this, folder, SWT.NONE);
      if (doc.open(filename, filelist)) {
        //CTabItem tab = newItem(doc, doc.getFilename());
        newItem(doc, doc.getFilename());
        // tab.setImage(ResourceManager.getImageFromResource("/sos/scheduler/editor/editor-small.png"));
        return doc;
      } else
        return null;
    } catch (Exception e) {     
View Full Code Here

    }
  }

  public String openDocumentationName(){
    try {
      DocumentationForm doc = new DocumentationForm(this, folder, SWT.NONE);
      if (doc.open(filelist)) {
        //CTabItem tab = newItem(doc, doc.getFilename());
        // tab.setImage(ResourceManager.getImageFromResource("/sos/scheduler/editor/editor-small.png"));
        return doc.getFilename();
      } else
        return null;
    } catch (Exception e) {   
      try {
        new ErrorLog("error in " + sos.util.SOSClassUtil.getMethodName() , e);
View Full Code Here

TOP

Related Classes of sos.scheduler.editor.doc.forms.DocumentationForm

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.