protected void writeXcodeProject(IProgressMonitor _monitor, IProject _project, PBXProject _xcodeProject, String _projectFolderName) throws CoreException { IProjectAdapter projectAdapter = (IProjectAdapter) _project.getAdapter(IProjectAdapter.class);
protected void writeXcodeProject(IProgressMonitor monitor, IProject project, PBXProject xcodeProject, String projectFolderName) throws CoreException { IProjectAdapter projectAdapter = (IProjectAdapter) project.getAdapter(IProjectAdapter.class);
	protected void writeXcodeProject(IProgressMonitor _monitor, IProject _project, PBXProject _xcodeProject, String _projectFolderName) throws CoreException {		IProjectAdapter projectAdapter = (IProjectAdapter) _project.getAdapter(IProjectAdapter.class);		List frameworkPaths = projectAdapter.getFrameworkPaths();		// System.err.println("Writing: " + _project.getName() + "->" + _xcodeProject);		Iterator frameworkPathsIter = frameworkPaths.iterator();		while (frameworkPathsIter.hasNext()) {			IPath frameworkPath = (IPath) frameworkPathsIter.next();			IContainer frameworkContainer = ResourcesPlugin.getWorkspace().getRoot().getContainerForLocation(frameworkPath);			if (frameworkContainer instanceof IProject) {				IProject frameworkProject = (IProject) frameworkContainer;				IJavaProject frameworkJavaProject = JavaCore.create(frameworkProject);				if (frameworkJavaProject != null) {					IPath defaultOutputLocation = frameworkProject.getLocation().append("build");					if (defaultOutputLocation != null) {						IPath builtFrameworkPath = defaultOutputLocation.append(frameworkProject.getName() + ".framework");						_xcodeProject.addFrameworkReference(builtFrameworkPath.toOSString());					}				}			} else {				_xcodeProject.addFrameworkReference(frameworkPath.toOSString());			}		}		IFile projectFolderFile = _project.getFile(_projectFolderName);		if (projectFolderFile.exists()) {			// NTS: ??			BuilderPlugin.getDefault().log("Specified Xcode project package (" + _projectFolderName + ") is not a directory.");		} else {			IFolder projectFolder = _project.getFolder(_projectFolderName);			if (!projectFolder.exists()) {				projectFolder.create(false, true, _monitor);			}			IFile pbxProjFile = projectFolder.getFile("project.pbxproj");			_xcodeProject.save(pbxProjFile.getLocation().toFile());			pbxProjFile.refreshLocal(IResource.DEPTH_INFINITE, _monitor);		}	}