return ((resource.getFileExtension().equalsIgnoreCase("java")) || (resource.getFileExtension().equalsIgnoreCase("class")));
String ex = resource.getFileExtension(); if (ex == null) return false; return (ex.equalsIgnoreCase("java") || ex.equalsIgnoreCase("class"));
	public static boolean isJavaArtifact(IResource resource) {		if (resource == null)			return false;				return ((resource.getFileExtension().equalsIgnoreCase("java"))				|| (resource.getFileExtension().equalsIgnoreCase("class")));	}