Bug 301841 [LinkedResources] ImportTypeDialog needs Javadoc
HEAD ImportTypeDialog needs Javadoc (type, constructor, setResource(..)) and probably an @noextend tag.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ImportTypeDialog.java
}
		}
		
		String mostAppropriate = null;
		String mostAppropriateToParent = null;
		int mostAppropriateCount = Integer.MAX_VALUE;
		int mostAppropriateCountToParent = Integer.MAX_VALUE;
		IPathVariableManager pathVariableManager = target.getProject().getPathVariableManager();
		String [] variables = pathVariableManager.getPathVariableNames(target);
		
		for (int i = 0; i < variables.length; i++) {
			IPathVariable var = pathVariableManager.getPathVariable(variables[i], target);
			if (var.isPreferred()) {
				URI rawValue = pathVariableManager.getValue(variables[i], target);
				URI value = pathVariableManager.resolveURI(rawValue, target);
				if (value != null) {
					IPath path = URIUtil.toPath(value);
					if (path != null) {
						int difference = path.matchingFirstSegments(commonRoot);
						if (difference > 0) {
							if (difference < mostAppropriateCount) {
								mostAppropriateCount = difference;
								mostAppropriate = variables[i];
							}
						}
						else {
							
							difference = commonRoot.matchingFirstSegments(path);
							if (difference > 0) {
								if (difference < mostAppropriateCountToParent) {