Bug 322401 [LinkedResources] Linked Resources properties page should have a Remove button
I20100810-0800 Project properties > Resource > Linked Resources > Linked Resources: Especially for invalid locations, a Remove button would be handy to remove one or multiple links.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/LinkedResourceEditor.java
it = resources.iterator();
			IPath commonPath = null;
			while (it.hasNext()) {
				IResource res = (IResource) it.next();
				IPath location = res.getLocation();
				if (commonPath == null)
					commonPath = location;
				else {
					int count = commonPath.matchingFirstSegments(location);
					if (count < commonPath.segmentCount())
						commonPath = commonPath.removeLastSegments(commonPath
								.segmentCount()
								- count);
				}
				if (commonPath.segmentCount() == 0)
					break;
			}
			if (commonPath.segmentCount() > 1) {
				String variableName = getSuitablePathVariable(commonPath);
				try {
					fProject.getPathVariableManager().setURIValue(variableName,
							URIUtil.toURI(commonPath));
				} catch (CoreException e) {
					report
							.add(NLS
									.bind(
											IDEWorkbenchMessages.LinkedResourceEditor_unableToCreateVariable,
											variableName, commonPath
													.toOSString()));