org.netbeans.modules.java.api.common.classpath
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.netbeans.modules.java.api.common.classpath(Showing top 15 results out of 315)

origin: org.netbeans.modules/org-netbeans-modules-java-api-common

@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);
}
origin: org.netbeans.modules/org-netbeans-modules-java-api-common

/** Creates list of <CODE>Items</CODE> from given property.
 */    
public Iterator<Item> itemsIterator(String propertyValue) {
  return itemsIterator(propertyValue, null);
}

origin: org.netbeans.modules/org-netbeans-modules-java-api-common

/**
 * 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);
}
origin: org.netbeans.modules/org-netbeans-modules-java-api-common

/**
 * 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);
}
origin: org.netbeans.modules/org-netbeans-modules-java-api-common

/** 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) {
origin: org.netbeans.modules/org-netbeans-modules-java-api-common

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);
}

origin: org.netbeans.modules/org-netbeans-modules-java-api-common

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);
}

origin: org.netbeans.modules/org-netbeans-modules-java-api-common

public void removeSourceAndJavadoc(UpdateHelper updateHelper) {
  assert getType() == Item.TYPE_JAR : getType();
  removeSource(updateHelper);
  removeJavadoc(updateHelper);
}
origin: org.netbeans.modules/org-netbeans-modules-java-api-common

@Override
public boolean removeRoots(final URL[] classPathRoots, final SourceGroup sourceGroup, final String type) throws IOException, UnsupportedOperationException {
  return removeRoots(convertURLsToURIs(classPathRoots), sourceGroup, type);
}
origin: org.netbeans.modules/org-netbeans-modules-java-api-common

@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);
}
origin: org.netbeans.modules/org-netbeans-modules-java-api-common

@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);
}

origin: org.netbeans.modules/org-netbeans-modules-java-api-common

@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);
}

origin: org.netbeans.modules/org-netbeans-modules-java-api-common

@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);
}
origin: org.netbeans.modules/org-netbeans-modules-java-api-common

/**
 * 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);
}
origin: org.netbeans.modules/org-netbeans-modules-java-api-common

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);
}

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

Most used classes

  • ClassPathSupport$Item
    Item of the classpath.
  • ClassPathSupport
    Support for reading/writting classpath like properties.
  • ClassPathModifier
    Implementation of classpath modifier.
  • ClassPathExtender
  • ClassPathProviderImpl
    Defines the various class paths for a J2SE project.
  • ClassPathModifier$Callback,
  • ClassPathModifierSupport$Accessor,
  • ClassPathModifierSupport$ClassPathPackageAccessorImpl,
  • ClassPathModifierSupport,
  • ClassPathProviderImpl$Builder,
  • ClassPathSupport$Callback,
  • ClassPathSupport$RelativePath,
  • ClassPathSupportFactory,
  • SourcePathImplementation

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)