org.netbeans.modules.java.api.common/0 1.37

org.netbeans.modules.java.api.common.classpath
Class ClassPathModifier

java.lang.Object
  extended by org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation
      extended by 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

Nested Class Summary
static interface ClassPathModifier.Callback
          Callback to customize classpath modifier behaviour.
 
Field Summary
static int ADD
           
static int ADD_NO_HEURISTICS
           
static int REMOVE
           
 
Constructor Summary
ClassPathModifier(Project project, UpdateHelper helper, PropertyEvaluator eval, ReferenceHelper refHelper, ClassPathSupport.Callback cpSupportCallback, ClassPathModifier.Callback cpModifierCallback, ClassPathUiSupport.Callback cpUiSupportCallback)
          Creates a new instance of J2SEProjectClassPathModifier
 
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 org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation
addProjects, convertURLsToURIs, performSharabilityHeuristics
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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

Method Detail

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()

org.netbeans.modules.java.api.common/0 1.37

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.