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());