Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2012 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.jdt.internal.core.builder;
import  org.eclipse.core.resources.*;
public class ClasspathMultiDirectory extends ClasspathDirectory {
IContainer sourceFolder;
char[][] inclusionPatterns// used by builders when walking source folders
char[][] exclusionPatterns// used by builders when walking source folders
boolean hasIndependentOutputFolder// if output folder is not equal to any of the source folders
public boolean ignoreOptionalProblems;
ClasspathMultiDirectory(IContainer sourceFolder, IContainer binaryFolderchar[][] inclusionPatternschar[][] exclusionPatternsboolean ignoreOptionalProblems) {
	super(binaryFoldertruenull);
	this. = sourceFolder;
	this. = inclusionPatterns;
	this. = exclusionPatterns;
	this. = ignoreOptionalProblems;
	// handle the case when a state rebuilds a source folder
	if (this. != null && this..length == 0)
		this. = null;
	if (this. != null && this..length == 0)
		this. = null;
public boolean equals(Object o) {
	if (this == oreturn true;
	if (!(o instanceof ClasspathMultiDirectory)) return false;
	return this. == md.ignoreOptionalProblems 
		&& this..equals(md.sourceFolder) && this..equals(md.binaryFolder)
		&& CharOperation.equals(this.md.inclusionPatterns)
		&& CharOperation.equals(this.md.exclusionPatterns);
protected boolean isExcluded(IResource resource) {
	if (this. != null || this. != null)
		if (this..equals(this.))
			return Util.isExcluded(resourcethis.this.);
	return false;
public String toString() {
	return "Source classpath directory " + this..getFullPath().toString() + //$NON-NLS-1$
		" with " + super.toString(); //$NON-NLS-1$
New to GrepCode? Check out our FAQ X