outPath = this.getJavaOutputPath();
compilerOutPath = this.getJavaProject().getOutputLocation();
baseSegments = compilerOutPath.segmentCount();
IProjectPatternsets adaptedProject = (IProjectPatternsets) this.getProject().getAdapter(IProjectPatternsets.class);
if (adaptedProject.matchesClassesPattern(resource)) {
IPath path = resource.getFullPath();
if (compilerOutPath.isPrefixOf(path) && !outPath.isPrefixOf(path)) {
IPath cp = path.removeFirstSegments(baseSegments);
path = outPath.append(cp);
if ((null != delta) && (delta.getKind() == IResourceDelta.REMOVED)) {