org.netbeans.modules.java.api.common.classpath
Class ClassPathModifier
java.lang.Object
org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation
org.netbeans.modules.java.api.common.classpath.ClassPathModifier
public final class ClassPathModifier
- extends ProjectClassPathModifierImplementation
Implementation of classpath modifier.
- Since:
- org.netbeans.modules.java.api.common/1 1.5
|
Method Summary |
protected boolean |
addAntArtifacts(AntArtifact[] artifacts,
URI[] artifactElements,
SourceGroup sourceGroup,
String type)
|
protected boolean |
addLibraries(Library[] libraries,
SourceGroup sourceGroup,
String type)
|
protected boolean |
addRoots(URI[] classPathRoots,
SourceGroup sourceGroup,
String type)
|
boolean |
addRoots(URI[] classPathRoots,
SourceGroup sourceGroup,
String type,
int operation)
|
protected boolean |
addRoots(URL[] classPathRoots,
SourceGroup sourceGroup,
String type)
|
boolean |
addRoots(URL[] classPathRoots,
String classPathProperty)
|
ClassPathSupport |
getClassPathSupport()
|
protected String[] |
getExtensibleClassPathTypes(SourceGroup sg)
|
SourceGroup[] |
getExtensibleSourceGroups()
|
protected boolean |
removeAntArtifacts(AntArtifact[] artifacts,
URI[] artifactElements,
SourceGroup sourceGroup,
String type)
|
protected boolean |
removeLibraries(Library[] libraries,
SourceGroup sourceGroup,
String type)
|
protected boolean |
removeRoots(URI[] classPathRoots,
SourceGroup sourceGroup,
String type)
|
protected boolean |
removeRoots(URL[] classPathRoots,
SourceGroup sourceGroup,
String type)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ADD
public static final int ADD
- See Also:
- Constant Field Values
ADD_NO_HEURISTICS
public static final int ADD_NO_HEURISTICS
- See Also:
- Constant Field Values
REMOVE
public static final int REMOVE
- See Also:
- Constant Field Values
ClassPathModifier
public ClassPathModifier(Project project,
UpdateHelper helper,
PropertyEvaluator eval,
ReferenceHelper refHelper,
ClassPathSupport.Callback cpSupportCallback,
ClassPathModifier.Callback cpModifierCallback,
ClassPathUiSupport.Callback cpUiSupportCallback)
- Creates a new instance of J2SEProjectClassPathModifier
getExtensibleSourceGroups
public SourceGroup[] getExtensibleSourceGroups()
- Specified by:
getExtensibleSourceGroups in class ProjectClassPathModifierImplementation
getExtensibleClassPathTypes
protected String[] getExtensibleClassPathTypes(SourceGroup sg)
- Specified by:
getExtensibleClassPathTypes in class ProjectClassPathModifierImplementation
removeRoots
protected boolean removeRoots(URL[] classPathRoots,
SourceGroup sourceGroup,
String type)
throws IOException,
UnsupportedOperationException
- Specified by:
removeRoots in class ProjectClassPathModifierImplementation
- Throws:
IOException
UnsupportedOperationException
removeRoots
protected boolean removeRoots(URI[] classPathRoots,
SourceGroup sourceGroup,
String type)
throws IOException,
UnsupportedOperationException
- Overrides:
removeRoots in class ProjectClassPathModifierImplementation
- Throws:
IOException
UnsupportedOperationException
addRoots
protected boolean addRoots(URL[] classPathRoots,
SourceGroup sourceGroup,
String type)
throws IOException,
UnsupportedOperationException
- Specified by:
addRoots in class ProjectClassPathModifierImplementation
- Throws:
IOException
UnsupportedOperationException
addRoots
public boolean addRoots(URL[] classPathRoots,
String classPathProperty)
throws IOException,
UnsupportedOperationException
- Throws:
IOException
UnsupportedOperationException
addRoots
protected boolean addRoots(URI[] classPathRoots,
SourceGroup sourceGroup,
String type)
throws IOException,
UnsupportedOperationException
- Overrides:
addRoots in class ProjectClassPathModifierImplementation
- Throws:
IOException
UnsupportedOperationException
addRoots
public boolean addRoots(URI[] classPathRoots,
SourceGroup sourceGroup,
String type,
int operation)
throws IOException,
UnsupportedOperationException
- Throws:
IOException
UnsupportedOperationException
removeAntArtifacts
protected boolean removeAntArtifacts(AntArtifact[] artifacts,
URI[] artifactElements,
SourceGroup sourceGroup,
String type)
throws IOException,
UnsupportedOperationException
- Specified by:
removeAntArtifacts in class ProjectClassPathModifierImplementation
- Throws:
IOException
UnsupportedOperationException
addAntArtifacts
protected boolean addAntArtifacts(AntArtifact[] artifacts,
URI[] artifactElements,
SourceGroup sourceGroup,
String type)
throws IOException,
UnsupportedOperationException
- Specified by:
addAntArtifacts in class ProjectClassPathModifierImplementation
- Throws:
IOException
UnsupportedOperationException
removeLibraries
protected boolean removeLibraries(Library[] libraries,
SourceGroup sourceGroup,
String type)
throws IOException,
UnsupportedOperationException
- Specified by:
removeLibraries in class ProjectClassPathModifierImplementation
- Throws:
IOException
UnsupportedOperationException
addLibraries
protected boolean addLibraries(Library[] libraries,
SourceGroup sourceGroup,
String type)
throws IOException,
UnsupportedOperationException
- Specified by:
addLibraries in class ProjectClassPathModifierImplementation
- Throws:
IOException
UnsupportedOperationException
getClassPathSupport
public ClassPathSupport getClassPathSupport()