Bug 122731 [build path] Variable value not updated in source tabe
Version: 3.2.0 Build id: I20060103-0800 Open projects build path property page, library tab. Add folder variable MY_VAR. Add folder variable MY_VAR. Edit path from one of the two variable entries. Only the edited one is updated, the other one remains unchanged. Close the properties by clicking ok and reopen it. Now both variables are referencing the same folder.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java
if (res == AccessRulesDialog.SWITCH_PAGE) { 
					dialog.performPageSwitch(fPageContainer);
				}
			}
		} else if (key.equals(CPListElement.NATIVE_LIB_PATH)) {
			NativeLibrariesDialog dialog= new NativeLibrariesDialog(getShell(), selElement);
			if (dialog.open() == Window.OK) {
				selElement.setAttribute(CPListElement.NATIVE_LIB_PATH, dialog.getNativeLibraryPath());
				String[] changedAttributes= { CPListElement.NATIVE_LIB_PATH };
				attributeUpdated(selElement, changedAttributes);
				
				fLibrariesList.refresh(elem);
				fClassPathList.dialogFieldChanged(); 
				updateEnabledState();
			}
		}
	}
	
	private void attributeUpdated(CPListElement selElement, String[] changedAttributes) {
		Object parentContainer= selElement.getParentContainer();
		if (parentContainer instanceof CPListElement) { 
			IClasspathEntry updatedEntry= selElement.getClasspathEntry();
			updateContainerEntry(updatedEntry, changedAttributes, fCurrJProject, ((CPListElement) parentContainer).getPath());
		}
	}
	private void updateContainerEntry(final IClasspathEntry newEntry, final String[] changedAttributes, final IJavaProject jproject, final IPath containerPath) {
		try {
			IWorkspaceRunnable runnable= new IWorkspaceRunnable() {
				public void run(IProgressMonitor monitor) throws CoreException {				
					BuildPathSupport.modifyClasspathEntry(null, newEntry, changedAttributes, jproject, containerPath, monitor);