if(addLocalFrameworkSectionToPBProject) { try { IResource pbproject = projectToUpdate.getProject().findMember(IWOLipsPluginConstants.PROJECT_FILE_NAME); if(pbproject != null) { PBProjectUpdater pbProjectUpdater = PBProjectUpdater.instance(pbproject.getParent()); pbProjectUpdater.addLocalFrameworkSectionToPBProject(); } } catch (Exception exception) { WOLipsLog.log(exception); } }
	public void executeDialog() {		Object[] result = null;		dialog.open();		if (dialog.getReturnCode() != Window.OK)			return;		result = dialog.getResult();		FileSystemElement currentFileElement;		String currentFileName;		IPath currentNewClasspath;		IClasspathEntry[] newClasspathEntries =			new IClasspathEntry[oldClasspathEntries.length + result.length];		// copy old classpath entries to new classpath entries		for (int i = 0; i < oldClasspathEntries.length; i++) {			newClasspathEntries[i] = oldClasspathEntries[i];		}		// add new classpath entries		for (int i = 0; i < result.length; i++) {			currentFileElement = (FileSystemElement) result[i];			currentFileName =				((File) currentFileElement.getFileSystemObject())					.getAbsolutePath();			currentNewClasspath = new Path(currentFileName);			// determine if new class path begins with file root path			if ((currentNewClasspath.segmentCount()				> frameworkRootPath.segmentCount())				&& currentNewClasspath					.removeLastSegments(						currentNewClasspath.segmentCount()							- frameworkRootPath.segmentCount())					.equals(frameworkRootPath)) {				// replace beginning of class path with correspondending				// class path variable				currentNewClasspath =					new Path(classPathVariableName).append(						currentNewClasspath.removeFirstSegments(							expandedClassPathVariable.segmentCount()));				// set path as variable entry							newClasspathEntries[i + oldClasspathEntries.length] =					JavaCore.newVariableEntry(currentNewClasspath, null, null);			} else {				newClasspathEntries[i + oldClasspathEntries.length] =					JavaCore.newLibraryEntry(currentNewClasspath, null, null);			}		}		try {			projectToUpdate.setRawClasspath(newClasspathEntries, null);		} catch (JavaModelException e) {			WOLipsPlugin.handleException(part.getSite().getShell(), e, null);		}	}