Package org.jayasoft.woj.common.model.content

Examples of org.jayasoft.woj.common.model.content.ModuleInfoImpl


        addPage(_attachContentWizardPage);
    }
   
    public boolean performFinish() {
      String moduleUrl = _identifyModuleWizardPage.getHomePageUrl();
        ModuleInfoImpl info = _identifyModuleWizardPage.getModuleInfo();
        info.setHasJavadoc(_attachContentWizardPage.getJavadoc().isSet());
        info.setHasSources(_attachContentWizardPage.getSource().isSet());
       
        boolean share = _identifyModuleWizardPage.getShare();
        String doc = _attachContentWizardPage.getJavadoc().getArchive();
        String docPath = _attachContentWizardPage.getJavadoc().getPathInArchive();
        if("".equals(doc)) { //$NON-NLS-1$
          doc = _attachContentWizardPage.getJavadoc().getUrl();
        }
       
        String src = _attachContentWizardPage.getSource().getArchive();
        String srcPath = _attachContentWizardPage.getSource().getPathInArchive();
        if("".equals(_attachContentWizardPage.getSource().getArchive())) { //$NON-NLS-1$
          src = _attachContentWizardPage.getSource().getUrl();
        }
       
        final int visibility = info.getVisibility()!= null ?info.getVisibility().getId():Visibility.SANDBOX.getId();
        String[] jars = (String[]) _jarFiles.toArray(new String[_jarFiles.size()]);
    try {
      String xmlDescriptor = WojServicesHelper.getDefault().getModuleDescriptor(info, share, jars, visibility, moduleUrl);
      if(xmlDescriptor !=null) {
        Job job = new AddModuleJob(xmlDescriptor, doc, docPath, src, srcPath, jars, _identifyModuleWizardPage.getLicensePath());
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.common.model.content.ModuleInfoImpl

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.