For IntelliJ IDEA and
Android Studio


@Override public boolean removeLibraries(final Library[] libraries, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); return handleLibraries (libraries, classPathProperty, cpModifierCallback.getElementName(classPathProperty), REMOVE); }
/** Creates list of <CODE>Items</CODE> from given property. */ public Iterator<Item> itemsIterator(String propertyValue) { return itemsIterator(propertyValue, null); }
/** * Creates implementation of BOOT classpath based on project's <code>platform.active</code> * property. * @param evaluator project's property evaluator * @return classpath implementation */ public static ClassPathImplementation createBootClassPathImplementation(PropertyEvaluator evaluator) { return createBootClassPathImplementation(evaluator, null, null); }
/** * Creates implementation of SOURCE classpath for given source roots and project * assuming build classes folder is stored in property <code>build.dir</code>. * * @param sourceRoots project source roots * @param projectHelper AntProjectHelper * @param evaluator PropertyEvaluator * @return classpath implementation */ public static ClassPathImplementation createSourcePathImplementation(SourceRoots sourceRoots, AntProjectHelper projectHelper, PropertyEvaluator evaluator) { return new SourcePathImplementation(sourceRoots, projectHelper, evaluator); }
/** Converts list of classpath items into array of Strings. * !! This method creates references in the project !! * !! This method may update project.xml !! */ public String[] encodeToStrings(List<Item> classpath) { return encodeToStrings(classpath, null); } public String[] encodeToStrings( List<Item> classpath, String projectXMLElement) {
boolean handleRoots (final URI[] classPathRoots, final String classPathProperty, final String projectXMLElementName, final int operation) throws IOException, UnsupportedOperationException { assert classPathRoots != null : "The classPathRoots cannot be null"; //NOI18N assert classPathProperty != null; return ClassPathModifierSupport.handleRoots(project, updateHelper, cs, eval, refHelper, cpUiSupportCallback, classPathRoots, classPathProperty, projectXMLElementName, operation); }
private ClassPath getRunTimeClasspath(FileObject file) { int type = getType(file); if (type < 0 || type > 4) { // Unregistered file, or in a JAR. // For jar:file:$projdir/dist/*.jar!/**/*.class, it is misleading to use // run.classpath since that does not actually contain the file! // (It contains file:$projdir/build/classes/ instead.) return null; } return getRunTimeClasspath(type); }
public void removeSourceAndJavadoc(UpdateHelper updateHelper) { assert getType() == Item.TYPE_JAR : getType(); removeSource(updateHelper); removeJavadoc(updateHelper); }
@Override public boolean removeRoots(final URL[] classPathRoots, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { return removeRoots(convertURLsToURIs(classPathRoots), sourceGroup, type); }
@Override public boolean removeRoots(final URI[] classPathRoots, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); return handleRoots (classPathRoots, classPathProperty, cpModifierCallback.getElementName(classPathProperty), REMOVE); }
@Override public boolean addAntArtifacts(final AntArtifact[] artifacts, final URI[] artifactElements, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); return handleAntArtifacts (artifacts, artifactElements, classPathProperty, cpModifierCallback.getElementName(classPathProperty), ADD); }
@Override public boolean addLibraries(final Library[] libraries, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); return handleLibraries (libraries, classPathProperty, cpModifierCallback.getElementName(classPathProperty), ADD); }
@Override public boolean removeAntArtifacts(final AntArtifact[] artifacts, final URI[] artifactElements, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException { String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); return handleAntArtifacts (artifacts, artifactElements, classPathProperty, cpModifierCallback.getElementName(classPathProperty), REMOVE); }
/** * Creates implementation of BOOT classpath based on project's <code>platform.active</code> * property and given endorsed classpath which will have precedence of platform classpath. * @param evaluator project's property evaluator * @param endorsedClassPath endorsed classpath to prepend to boot classpath * @return classpath implementation * @since org.netbeans.modules.java.api.common/0 1.11 */ public static ClassPathImplementation createBootClassPathImplementation(PropertyEvaluator evaluator, ClassPath endorsedClassPath) { return createBootClassPathImplementation(evaluator, endorsedClassPath, null); }
public boolean addRoots (final URI[] classPathRoots, final SourceGroup sourceGroup, final String type, int operation) throws IOException, UnsupportedOperationException { String classPathProperty = cpModifierCallback.getClassPathProperty(sourceGroup, type); return handleRoots (classPathRoots, classPathProperty, cpModifierCallback.getElementName(classPathProperty), operation); }