/** * Searches supplied URL for a potential kernel. This method calls kernelSearch() * with a prefilter that excludes all files except the ones starting with "Kernel". * * @param url The URL to search */ protected IFuture quickKernelSearch(URL url, IResourceIdentifier rid) { return kernelSearch(url, new IFilter() { public boolean filter(Object obj) { String loc = (String) obj; // if (loc.toLowerCase().contains("kernel")) // { // System.out.println(loc); // System.out.println(loc.substring(loc.lastIndexOf('/') + 1).toLowerCase().startsWith("kernel")); // } // For jar entries, strip directory part. return loc.substring(loc.lastIndexOf(packageseparator) + 1).toLowerCase().startsWith("kernel"); } }, rid); }