Bug 118246 Definition of getJavaLikeExtensions() leads to programming errors
I20051123-1200 In contrast to all existing get*Extension* methods for file (names) in the Platform the new getJavaLikeExtensions() method is containing the '.'. This leads to programming errors when working with extensions in Eclipse: IFile.getFileExtension() returns 'java' for Foo.java IFileEditorMapping.getExtension() for the Java editor returns 'java' BUT: JavaCore.getJavaLikeExtensions() returns '.java'
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/propertiesfileeditor/PropertyKeyHyperlink.java
}
		return (KeyReference[])result.toArray(new KeyReference[result.size()]);
	}
	private static SearchScope createScope(IResource scope) {
		SearchScope result= SearchScope.newSearchScope("", new IResource[] { scope }); 
		
		String[] javaExtensions= JavaCore.getJavaLikeExtensions();
		for (int i= 0; i < javaExtensions.length; i++)
			/*
			 * XXX: no dot added due to https://bugs.eclipse.org/bugs/show_bug.cgi?id=118246
			 */ 
			result.addFileNamePattern("*" + javaExtensions[i]); 
		result.addFileNamePattern("*.xml"); 
		result.addFileNamePattern("*.ini"); 
		return result;
	}
	/*
	 * @see org.eclipse.jdt.internal.ui.javaeditor.IHyperlink#getTypeLabel()
	 */
	public String getTypeLabel() {
		return null;
	}
	/*
	 * @see org.eclipse.jdt.internal.ui.javaeditor.IHyperlink#getHyperlinkText()
	 */
	public String getHyperlinkText() {
		return null;
	}
}