/** * Checks if the given project or workspace has source compliance 1.8 or greater. * * @param project the project to test or <code>null</code> to test the workspace settings * @return <code>true</code> if the given project or workspace has source compliance 1.8 or * greater. */ public static boolean is18OrHigher(IJavaProject project) { return is18OrHigher(getSourceCompliance(project)); }
/** * Checks if the given project or workspace has source compliance 1.5 or greater. * * @param project the project to test or <code>null</code> to test the workspace settings * @return <code>true</code> if the given project or workspace has source compliance 1.5 or greater. */ public static boolean is50OrHigher(IJavaProject project) { return is50OrHigher(getSourceCompliance(project)); }
/** * Checks if the given project or workspace has source compliance 1.7 or greater. * * @param project the project to test or <code>null</code> to test the workspace settings * @return <code>true</code> if the given project or workspace has source compliance 1.7 or greater. */ public static boolean is17OrHigher(IJavaProject project) { return is17OrHigher(getSourceCompliance(project)); }
/** * Checks if the given project or workspace has source compliance 9 or greater. * * @param project the project to test or <code>null</code> to test the workspace settings * @return <code>true</code> if the given project or workspace has source compliance 9 or * greater. */ public static boolean is9OrHigher(IJavaProject project) { return is9OrHigher(getSourceCompliance(project)); }
/** * Checks if the given project or workspace has source compliance 1.7 or greater. * * @param project the project to test or <code>null</code> to test the workspace settings * @return <code>true</code> if the given project or workspace has source compliance 1.7 or greater. */ public static boolean is17OrHigher(IJavaProject project) { return is17OrHigher(getSourceCompliance(project)); }
/** * Checks if the given project or workspace has source compliance 10 or greater. * * @param project the project to test or <code>null</code> to test the workspace settings * @return <code>true</code> if the given project or workspace has source compliance 10 or greater. */ public static boolean is10OrHigher(IJavaProject project) { return is10OrHigher(getSourceCompliance(project)); }
/** * Checks if the given project or workspace has source compliance 11 or greater. * * @param project the project to test or <code>null</code> to test the workspace settings * @return <code>true</code> if the given project or workspace has source compliance 11 or greater. */ public static boolean is11OrHigher(IJavaProject project) { return is11OrHigher(getSourceCompliance(project)); }
/** * Checks if the given project or workspace has source compliance 1.5 or greater. * * @param project the project to test or <code>null</code> to test the workspace settings * @return <code>true</code> if the given project or workspace has source compliance 1.5 or greater. */ public static boolean is50OrHigher(IJavaProject project) { return is50OrHigher(getSourceCompliance(project)); }
/** * Checks if the given project or workspace has source compliance 1.8 or greater. * * @param project the project to test or <code>null</code> to test the workspace settings * @return <code>true</code> if the given project or workspace has source compliance 1.8 or * greater. */ public static boolean is18OrHigher(IJavaProject project) { return is18OrHigher(getSourceCompliance(project)); }