Example usage for org.eclipse.jdt.internal.core ClasspathEntry getSourceAttachmentPath

List of usage examples for org.eclipse.jdt.internal.core ClasspathEntry getSourceAttachmentPath

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core ClasspathEntry getSourceAttachmentPath.

Prototype

@Override
public IPath getSourceAttachmentPath() 

Source Link

Usage

From source file:org.eclipse.jdt.internal.core.JavaProject.java

License:Open Source License

private void copyFromOldChainedEntry(ClasspathEntry resolvedEntry, ClasspathEntry chainedEntry) {
    IPath path = chainedEntry.getSourceAttachmentPath();
    if (path != null) {
        resolvedEntry.sourceAttachmentPath = path;
    }/*from ww  w.  j a  v a2 s  .  c o m*/
    path = chainedEntry.getSourceAttachmentRootPath();
    if (path != null) {
        resolvedEntry.sourceAttachmentRootPath = path;
    }
    IClasspathAttribute[] attributes = chainedEntry.getExtraAttributes();
    if (attributes != null) {
        resolvedEntry.extraAttributes = attributes;
    }
}