Bug 6009 New class wizard doesn't get context right for nested classes
Build 20011106. - with a .java file open in the editor, - click the new class button - check "Enclosing Type" - the field is blank - it should default to the current type in the editor
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/util/JavaModelUtil.java
IClasspathEntry curr= entries[i];
		
			if (curr.getEntryKind() == IClasspathEntry.CPE_VARIABLE) {
				curr= JavaCore.getResolvedClasspathEntry(curr);
			}
			if (curr != null && curr.getContentKind() == root.getKind() && path.equals(curr.getPath())) {
				return entries[i];
			}
		}
		return null;
	}
	/**
	 * Concatenates two names. Uses a dot for separation.
	 * Both strings can be empty or <code>null</code>.
	 */
	public static String concatenateName(String name1, String name2) {
		StringBuffer buf= new StringBuffer();
		if (name1 != null && name1.length() > 0) {
			buf.append(name1);
			if (name2 != null && name2.length() > 0) {
				buf.append('.');
				buf.append(name2);
			}
		}
		return buf.toString();
	}
	
	/**
	 * Evaluates if a member (possible from another package) is visible from
	 * elements in a package.