1 19 20 package org.netbeans.modules.java.project.classpath; 21 22 import java.io.IOException ; 23 import java.net.URI ; 24 import java.net.URL ; 25 import org.netbeans.api.java.project.classpath.ProjectClassPathModifier; 26 import org.netbeans.api.project.SourceGroup; 27 import org.netbeans.api.project.ant.AntArtifact; 28 import org.netbeans.api.project.libraries.Library; 29 import org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation; 30 import org.openide.ErrorManager; 31 32 36 public abstract class ProjectClassPathModifierAccessor { 37 38 public static ProjectClassPathModifierAccessor INSTANCE; 39 40 static { 41 Class c = ProjectClassPathModifierImplementation.class; 42 try { 43 Class.forName (c.getName(), true, c.getClassLoader()); 44 } catch (Exception ex) { 45 ErrorManager.getDefault().notify(ex); 46 } 47 } 48 49 50 public ProjectClassPathModifierAccessor() { 51 } 52 53 public abstract SourceGroup[] getExtensibleSourceGroups (ProjectClassPathModifierImplementation m); 54 55 public abstract String [] getExtensibleClassPathTypes (ProjectClassPathModifierImplementation m, SourceGroup sg); 56 57 public abstract boolean addLibraries (Library[] libraries, ProjectClassPathModifierImplementation m, SourceGroup sourceGroup, String type) throws IOException , UnsupportedOperationException ; 58 59 public abstract boolean removeLibraries (Library[] libraries, ProjectClassPathModifierImplementation m, SourceGroup sourceGroup, String type) throws IOException , UnsupportedOperationException ; 60 61 public abstract boolean addRoots (URL [] classPathRoots, ProjectClassPathModifierImplementation m, SourceGroup sourceGroup, String type) throws IOException , UnsupportedOperationException ; 62 63 public abstract boolean removeRoots (URL [] classPathRoots, ProjectClassPathModifierImplementation m, SourceGroup sourceGroup, String type) throws IOException , UnsupportedOperationException ; 64 65 public abstract boolean addAntArtifacts (AntArtifact[] artifacts, URI [] artifactElements, ProjectClassPathModifierImplementation m, SourceGroup sourceGroup, String type) throws IOException , UnsupportedOperationException ; 66 67 public abstract boolean removeAntArtifacts (AntArtifact[] artifacts, URI [] artifactElements, ProjectClassPathModifierImplementation m, SourceGroup sourceGroup, String type) throws IOException , UnsupportedOperationException ; 68 69 } 70 | Popular Tags |