new version with WorkingCopy Management
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / builder / ClasspathLocation.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpeclipse.builder;
12
13 import org.eclipse.core.resources.IContainer;
14 import org.eclipse.core.runtime.IPath;
15
16 public abstract class ClasspathLocation {
17
18 static ClasspathLocation forSourceFolder(IContainer sourceFolder, IContainer outputFolder, char[][] exclusionPatterns) {
19         return new ClasspathMultiDirectory(sourceFolder, outputFolder, exclusionPatterns);
20 }
21
22 public static ClasspathLocation forBinaryFolder(IContainer binaryFolder, boolean isOutputFolder) {
23         return new ClasspathDirectory(binaryFolder, isOutputFolder);
24 }
25
26 //static ClasspathLocation forLibrary(String libraryPathname) {
27 //      return new ClasspathJar(libraryPathname);
28 //}
29
30 //static ClasspathLocation forLibrary(IFile library) {
31 //      return new ClasspathJar(library);
32 //}
33
34 //public abstract NameEnvironmentAnswer findClass(String binaryFileName, String qualifiedPackageName, String qualifiedBinaryFileName);
35
36 public abstract IPath getProjectRelativePath();
37
38 public boolean isOutputFolder() {
39         return false;
40 }
41
42 public abstract boolean isPackage(String qualifiedPackageName);
43
44 // free anything which is not required when the state is saved
45 public void cleanup() {
46 }
47 // reset any internal caches before another compile loop starts
48 public void reset() {
49 }
50 }