ProjectHelper.addFrameworkListToClasspathEntries( newAdaptorFrameworkList, projectToUpdate);
wolipsJavaProject .getClasspathAccessor() .addFrameworkListToClasspathEntries( newAdaptorFrameworkList);
	public void createEOModel(IProgressMonitor monitor)		throws CoreException, InvocationTargetException {		IFolder modelFolder = null;		switch (parentResource.getType()) {			case IResource.PROJECT :				modelFolder =					((IProject) parentResource).getFolder(						modelName + "." + EXT_EOMODEL);				break;			case IResource.FOLDER :				modelFolder =					((IFolder) parentResource).getFolder(						modelName + "." + EXT_EOMODEL);				break;			default :				throw new InvocationTargetException(					new Exception("Wrong parent resource - check validation"));		}		IFile modelIndexFile = modelFolder.getFile("index." + EXT_EOMODEL);		IFile modelDiagramLayoutFile = modelFolder.getFile("DiagramLayout");		createResourceFolderInProject(modelFolder, monitor);		fileCreator().create(modelIndexFile, monitor);		fileCreator().create(modelDiagramLayoutFile, "diagram", monitor);		// add adaptor framework		if (!"None".equals(adaptorName)) {			IJavaProject projectToUpdate =				JavaCore.create(parentResource.getProject());			Vector newAdaptorFrameworkList = new Vector();			newAdaptorFrameworkList.add(				"Java" + adaptorName + "Adaptor." + EXT_FRAMEWORK);			IClasspathEntry[] newClasspathEntries =				ProjectHelper.addFrameworkListToClasspathEntries(					newAdaptorFrameworkList,					projectToUpdate);			try {				projectToUpdate.setRawClasspath(newClasspathEntries, null);			} catch (JavaModelException e) {				throw new InvocationTargetException(e);			}			finally {				projectToUpdate = null;				newAdaptorFrameworkList = null;				newClasspathEntries = null;			}		}	}