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(); }
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());
apiWebServicesClientSupport = WebServicesClientSupportFactory.createWebServicesClientSupport(ejbJarWebServicesClientSupport); apiJAXWSClientSupport = JAXWSClientSupportFactory.createJAXWSClientSupport(jaxWsClientSupport); classPathModifier = new ClassPathModifier(this, this.updateHelper, eval, refHelper, new ClassPathSupportCallbackImpl(helper), createClassPathModifierCallback(), getClassPathUiSupportCallback());
apiJAXWSClientSupport = JAXWSClientSupportFactory.createJAXWSClientSupport(jaxWsClientSupport); enterpriseResourceSupport = new WebContainerImpl(this, refHelper, helper); ClassPathModifier cpModTemp = new ClassPathModifier(this, this.updateHelper, eval, refHelper, new ClassPathSupportCallbackImpl(helper), createClassPathModifierCallback(), getClassPathUiSupportCallback()); libMod = new WebProjectLibrariesModifierImpl(this, this.updateHelper, eval, refHelper);