Package org.apache.geronimo.jee.application

Examples of org.apache.geronimo.jee.application.Path


      } else {
    extModule = (ExtModule) eObject;
      }

      // NOTE!! this replaces the call to processEAttributes (page);
      Path path = (Path) getEFactory().create(Path.class);
      path.setValue(page0.text[0].getText());
      extModule.setConnector(path);

      Pattern pattern = (Pattern) getEFactory().create(Pattern.class);
      extModule.setExternalPath(pattern);
      pattern.setGroupId(page0.text[1].getText());
View Full Code Here


        }
    }
   
    public boolean performFinish() {
        ModuleWizardPage page = (ModuleWizardPage) getPages()[0];
        Path path;
        ExtModule extModule;

        if (eObject == null) {
            eObject = getEFactory().create(ExtModule.class);
            JAXBElement plan = section.getPlan();
            extModule = (ExtModule)eObject;
            //This is the extModule field in plan(Application Type)
            List<ExtModule> extModuleList = ((Application)plan.getValue()).getExtModule();
            extModuleList.add(extModule);
        }
        else {
            extModule = (ExtModule)eObject;
            extModule.setConnector(null);
            extModule.setEjb(null);
            extModule.setJava(null);
            extModule.setWeb(null);
            extModule.setExternalPath(null);
        }

        // NOTE!! this replaces the call to processEAttributes (page);
        path = (Path)getEFactory().create(Path.class);
        path.setValue(page.getTextEntry(0).getText());

        if (((ModuleWizardPage)page).buttonList[0].getSelection())
            extModule.setConnector(path);
        else if (((ModuleWizardPage)page).buttonList[1].getSelection())
            extModule.setEjb(path);
View Full Code Here

        }
    }

    public boolean performFinish() {
        AbstractTableWizardPage page = (AbstractTableWizardPage) getPages()[0];
        Path path;
        Module module;

        if (eObject == null) {
            eObject = getEFactory().create(Module.class);
            JAXBElement plan = section.getPlan();

            module = (Module)eObject;

            List moduleList = ((Application)plan.getValue()).getModule();
            if (moduleList == null) {
                moduleList = (List)getEFactory().create(Module.class);
            }
            moduleList.add(eObject);
        }
        else {
            module = (Module)eObject;
            module.setConnector(null);
            module.setEjb(null);
            module.setJava(null);
            module.setWeb(null);
        }

        // NOTE!! this replaces the call to processEAttributes (page);
        path = (Path)getEFactory().create(Path.class);
        path.setValue(page.getTextEntry(0).getText());

        if (((ModuleWizardPage)page).buttonList[0].getSelection())
            module.setConnector(path);
        else if (((ModuleWizardPage)page).buttonList[1].getSelection())
            module.setEjb(path);
        else if (((ModuleWizardPage)page).buttonList[2].getSelection())
            module.setJava(path);
        else if (((ModuleWizardPage)page).buttonList[3].getSelection())
            module.setWeb(path);
       
        String altDD = page.getTextEntry(1).getText();
        path = (Path)getEFactory().create(Path.class);
        path.setValue(altDD);
        module.setAltDd(path);
       
        if (section.getViewer().getInput() == section.getPlan()) {
            section.getViewer().setInput(section.getInput());
        }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.jee.application.Path

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.