@Override protected boolean addRoots(URL[] classPathRoots, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.addCompileRoots(classPathRoots); } else { return cpMod.addRoots(classPathRoots, sourceGroup, type); } }
@Override protected boolean addAntArtifacts(AntArtifact[] artifacts, URI[] artifactElements, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.addCompileAntArtifacts(artifacts, artifactElements); } else { return cpMod.addAntArtifacts(artifacts, artifactElements, sourceGroup, type); } }
@Override protected boolean addLibraries(Library[] libraries, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.addCompileLibraries(libraries); } else { return cpMod.addLibraries(libraries, sourceGroup, type); } }
J2SEProject(AntProjectHelper helper) throws IOException { this.helper = helper; eval = createEvaluator(); aux = helper.createAuxiliaryConfiguration(); for (int v = 4; v < 10; v++) { if (aux.getConfigurationFragment("data", "http://www.netbeans.org/ns/scala-project/" + v, true) != null) { // NOI18N throw Exceptions.attachLocalizedMessage(new IOException("too new"), // NOI18N NbBundle.getMessage(J2SEProject.class, "ScalaProject.too_new", FileUtil.getFileDisplayName(helper.getProjectDirectory()))); } } refHelper = new ReferenceHelper(helper, aux, eval); buildExtender = AntBuildExtenderFactory.createAntExtender(new J2SEExtenderImplementation(), refHelper); /// TODO replace this GeneratedFilesHelper with the default one when fixing #101710 genFilesHelper = new GeneratedFilesHelper(helper, buildExtender); UpdateImplementation updateProject = new UpdateProjectImpl(this, helper, aux); this.updateHelper = new UpdateHelper(updateProject, helper); this.cpProvider = new ClassPathProviderImpl(this.helper, evaluator(), getSourceRoots(), getTestSourceRoots()); //Does not use APH to get/put properties/cfgdata this.cpMod = new ClassPathModifier(this, this.updateHelper, eval, refHelper, null, createClassPathModifierCallback(), null); final J2SEActionProvider actionProvider = new J2SEActionProvider(this, this.updateHelper); lookup = createLookup(aux, actionProvider); actionProvider.startFSListener(); }
@Override protected String[] getExtensibleClassPathTypes(SourceGroup sourceGroup) { List<String> res = new ArrayList<String>(Arrays.asList(cpMod.getExtensibleClassPathTypes(sourceGroup))); res.add(JavaClassPathConstants.COMPILE_ONLY); return res.toArray(new String[res.size()]); }
@Override protected boolean removeLibraries(Library[] libraries, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.removeCompileLibraries(libraries); } else { return cpMod.removeLibraries(libraries, sourceGroup, type); } }
@Override protected boolean removeAntArtifacts(AntArtifact[] artifacts, URI[] artifactElements, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.removeCompileAntArtifacts(artifacts, artifactElements); } else { return cpMod.removeAntArtifacts(artifacts, artifactElements, sourceGroup, type); } }
@Override protected boolean removeRoots(URL[] classPathRoots, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.removeCompileRoots(classPathRoots); } else { return cpMod.removeRoots(classPathRoots, sourceGroup, type); } }
@Override protected SourceGroup[] getExtensibleSourceGroups() { return cpMod.getExtensibleSourceGroups(); }
public ClassPathSupport getClassPathSupport() { return cpMod.getClassPathSupport(); }
apiJar = CarFactory.createCar(new CarImpl2(appClient)); enterpriseResourceSupport = new JarContainerImpl(this, refHelper, helper); ClassPathModifier cpModPrevious = new ClassPathModifier(this, this.updateHelper, eval, refHelper, new ClassPathSupportCallbackImpl(helper), createClassPathModifierCallback(), getClassPathUiSupportCallback());
@Override protected String[] getExtensibleClassPathTypes(SourceGroup sourceGroup) { List<String> res = new ArrayList<String>(Arrays.asList(cpMod.getExtensibleClassPathTypes(sourceGroup))); res.add(JavaClassPathConstants.COMPILE_ONLY); return res.toArray(new String[res.size()]); }
@Override protected boolean removeLibraries(Library[] libraries, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.removeCompileLibraries(libraries); } else { return cpMod.removeLibraries(libraries, sourceGroup, type); } }
@Override protected boolean removeAntArtifacts(AntArtifact[] artifacts, URI[] artifactElements, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.removeCompileAntArtifacts(artifacts, artifactElements); } else { return cpMod.removeAntArtifacts(artifacts, artifactElements, sourceGroup, type); } }
@Override protected boolean removeRoots(URL[] classPathRoots, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.removeCompileRoots(classPathRoots); } else { return cpMod.removeRoots(classPathRoots, sourceGroup, type); } }
@Override protected SourceGroup[] getExtensibleSourceGroups() { return cpMod.getExtensibleSourceGroups(); }
public ClassPathSupport getClassPathSupport() { return cpMod.getClassPathSupport(); }
apiWebServicesClientSupport = WebServicesClientSupportFactory.createWebServicesClientSupport(ejbJarWebServicesClientSupport); apiJAXWSClientSupport = JAXWSClientSupportFactory.createJAXWSClientSupport(jaxWsClientSupport); classPathModifier = new ClassPathModifier(this, this.updateHelper, eval, refHelper, new ClassPathSupportCallbackImpl(helper), createClassPathModifierCallback(), getClassPathUiSupportCallback());
@Override protected boolean addRoots(URL[] classPathRoots, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.addCompileRoots(classPathRoots); } else { return cpMod.addRoots(classPathRoots, sourceGroup, type); } }
@Override protected boolean addAntArtifacts(AntArtifact[] artifacts, URI[] artifactElements, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException { if (JavaClassPathConstants.COMPILE_ONLY.equals(type)) { return compileOnlyClassPathSupport.addCompileAntArtifacts(artifacts, artifactElements); } else { return cpMod.addAntArtifacts(artifacts, artifactElements, sourceGroup, type); } }