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

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

Introduction

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

Prototype

@Override
public IPath getSourceAttachmentRootPath() 

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;
    }/* w  w  w.  j a v  a 2 s .co m*/
    path = chainedEntry.getSourceAttachmentRootPath();
    if (path != null) {
        resolvedEntry.sourceAttachmentRootPath = path;
    }
    IClasspathAttribute[] attributes = chainedEntry.getExtraAttributes();
    if (attributes != null) {
        resolvedEntry.extraAttributes = attributes;
    }
}