public class ClassPathModifierSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ADD |
static int |
ADD_NO_HEURISTICS |
static int |
REMOVE |
| Constructor and Description |
|---|
ClassPathModifierSupport() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
handleAntArtifacts(Project project,
AntProjectHelper helper,
ClassPathSupport cs,
PropertyEvaluator eval,
ClassPathUiSupport.Callback cpUiSupportCallback,
AntArtifact[] artifacts,
URI[] artifactElements,
String classPathProperty,
String projectXMLElementName,
int operation)
|
static boolean |
handleAntArtifacts(Project project,
UpdateHelper helper,
ClassPathSupport cs,
PropertyEvaluator eval,
ReferenceHelper refHelper,
ClassPathUiSupport.Callback cpUiSupportCallback,
AntArtifact[] artifacts,
URI[] artifactElements,
String classPathProperty,
String projectXMLElementName,
int operation)
Adds or removes project's artifact from given classpath.
|
static boolean |
handleLibraries(Project project,
AntProjectHelper helper,
ClassPathSupport cs,
PropertyEvaluator eval,
ClassPathUiSupport.Callback cpUiSupportCallback,
ReferenceHelper refHelper,
Library[] libraries,
String classPathProperty,
String projectXMLElementName,
int operation) |
static boolean |
handleLibraryClassPathItems(Project project,
AntProjectHelper helper,
ClassPathSupport cs,
List<ClassPathSupport.Item> items,
String classPathProperty,
String projectXMLElementName,
int operation,
boolean saveProject) |
static boolean |
handleRoots(Project project,
AntProjectHelper helper,
ClassPathSupport cs,
PropertyEvaluator eval,
ClassPathUiSupport.Callback cpUiSupportCallback,
URI[] classPathRoots,
String classPathProperty,
String projectXMLElementName,
int operation)
|
static boolean |
handleRoots(Project project,
UpdateHelper helper,
ClassPathSupport cs,
PropertyEvaluator eval,
ReferenceHelper refHelper,
ClassPathUiSupport.Callback cpUiSupportCallback,
URI[] classPathRoots,
String classPathProperty,
String projectXMLElementName,
int operation)
Adds or removes jar files or folders from given classpath.
|
public static final int ADD
public static final int ADD_NO_HEURISTICS
public static final int REMOVE
@Deprecated public static boolean handleRoots(@NonNull Project project, @NonNull AntProjectHelper helper, @NonNull ClassPathSupport cs, @NonNull PropertyEvaluator eval, @NullAllowed ClassPathUiSupport.Callback cpUiSupportCallback, @NonNull URI[] classPathRoots, @NonNull String classPathProperty, @NullAllowed String projectXMLElementName, int operation) throws IOException
IOExceptionpublic static boolean handleRoots(@NonNull Project project, @NonNull UpdateHelper helper, @NonNull ClassPathSupport cs, @NonNull PropertyEvaluator eval, @NonNull ReferenceHelper refHelper, @NullAllowed ClassPathUiSupport.Callback cpUiSupportCallback, @NonNull URI[] classPathRoots, @NonNull String classPathProperty, @NullAllowed String projectXMLElementName, int operation) throws IOException
project - the project to (from) which classpath the artifacts should be added (removed).helper - the UpdateHelpercs - the ClassPathSupporteval - the PropertyEvaluatorrefHelper - the ReferenceHelpercpUiSupportCallback - the optional ClassPathUiSupport.Callback doing the ClassPathSupport.Item initialization.classPathRoots - the jar files or folders to be added (removed)classPathProperty - the classpath property into (from which) the artifacts should be added (removed).projectXMLElementName - optional project XML element nameoperation - to be performed ADD, ADD_NO_HEURISTICS, REMOVEIOException - in case of failure@Deprecated public static boolean handleAntArtifacts(@NonNull Project project, @NonNull AntProjectHelper helper, @NonNull ClassPathSupport cs, @NonNull PropertyEvaluator eval, @NullAllowed ClassPathUiSupport.Callback cpUiSupportCallback, @NonNull AntArtifact[] artifacts, @NonNull URI[] artifactElements, @NonNull String classPathProperty, @NullAllowed String projectXMLElementName, int operation) throws IOException, UnsupportedOperationException
public static boolean handleAntArtifacts(@NonNull Project project, @NonNull UpdateHelper helper, @NonNull ClassPathSupport cs, @NonNull PropertyEvaluator eval, @NonNull ReferenceHelper refHelper, @NullAllowed ClassPathUiSupport.Callback cpUiSupportCallback, @NonNull AntArtifact[] artifacts, @NonNull URI[] artifactElements, @NonNull String classPathProperty, @NullAllowed String projectXMLElementName, int operation) throws IOException, UnsupportedOperationException
project - the project to (from) which classpath the artifacts should be added (removed).helper - the UpdateHelpercs - the ClassPathSupporteval - the PropertyEvaluatorrefHelper - the ReferenceHelpercpUiSupportCallback - the optional ClassPathUiSupport.Callback doing the ClassPathSupport.Item initialization.artifacts - the artifacts to be addedartifactElements - the corresponding artifacts elementsclassPathProperty - the classpath property into (from which) the artifacts should be added (removed).projectXMLElementName - optional project XML element nameoperation - to be performed ADD, ADD_NO_HEURISTICS, REMOVEIOException - in case of failureUnsupportedOperationExceptionpublic static boolean handleLibraries(Project project, AntProjectHelper helper, ClassPathSupport cs, PropertyEvaluator eval, ClassPathUiSupport.Callback cpUiSupportCallback, ReferenceHelper refHelper, Library[] libraries, String classPathProperty, String projectXMLElementName, int operation) throws IOException, UnsupportedOperationException
public static boolean handleLibraryClassPathItems(Project project, AntProjectHelper helper, ClassPathSupport cs, List<ClassPathSupport.Item> items, String classPathProperty, String projectXMLElementName, int operation, boolean saveProject) throws IOException
IOExceptionBuilt on May 16 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.