private void copyFromOldChainedEntry(ClasspathEntry resolvedEntry, ClasspathEntry chainedEntry) { IPath path = chainedEntry.getSourceAttachmentPath(); if ( path != null) { resolvedEntry.sourceAttachmentPath = path; } path = chainedEntry.getSourceAttachmentRootPath(); if (path != null) { resolvedEntry.sourceAttachmentRootPath = path; } IClasspathAttribute[] attributes = chainedEntry.getExtraAttributes(); if (attributes != null) { resolvedEntry.extraAttributes = attributes; } }
private void copyFromOldChainedEntry(ClasspathEntry resolvedEntry, ClasspathEntry chainedEntry) { IPath path = chainedEntry.getSourceAttachmentPath(); if ( path != null) { resolvedEntry.sourceAttachmentPath = path; } path = chainedEntry.getSourceAttachmentRootPath(); if (path != null) { resolvedEntry.sourceAttachmentRootPath = path; } IClasspathAttribute[] attributes = chainedEntry.getExtraAttributes(); if (attributes != null) { resolvedEntry.extraAttributes = attributes; } }
private void copyFromOldChainedEntry(ClasspathEntry resolvedEntry, ClasspathEntry chainedEntry) { IPath path = chainedEntry.getSourceAttachmentPath(); if ( path != null) { resolvedEntry.sourceAttachmentPath = path; } path = chainedEntry.getSourceAttachmentRootPath(); if (path != null) { resolvedEntry.sourceAttachmentRootPath = path; } IClasspathAttribute[] attributes = chainedEntry.getExtraAttributes(); if (attributes != null) { resolvedEntry.extraAttributes = attributes; } }
private void copyFromOldChainedEntry(ClasspathEntry resolvedEntry, ClasspathEntry chainedEntry) { IPath path = chainedEntry.getSourceAttachmentPath(); if ( path != null) { resolvedEntry.sourceAttachmentPath = path; } path = chainedEntry.getSourceAttachmentRootPath(); if (path != null) { resolvedEntry.sourceAttachmentRootPath = path; } IClasspathAttribute[] attributes = chainedEntry.getExtraAttributes(); if (attributes != null) { resolvedEntry.extraAttributes = attributes; } }
private void copyFromOldChainedEntry(ClasspathEntry resolvedEntry, ClasspathEntry chainedEntry) { IPath path = chainedEntry.getSourceAttachmentPath(); if ( path != null) { resolvedEntry.sourceAttachmentPath = path; } path = chainedEntry.getSourceAttachmentRootPath(); if (path != null) { resolvedEntry.sourceAttachmentRootPath = path; } IClasspathAttribute[] attributes = chainedEntry.getExtraAttributes(); if (attributes != null) { resolvedEntry.extraAttributes = attributes; } }
private void copyFromOldChainedEntry(ClasspathEntry resolvedEntry, ClasspathEntry chainedEntry) { IPath path = chainedEntry.getSourceAttachmentPath(); if ( path != null) { resolvedEntry.sourceAttachmentPath = path; } path = chainedEntry.getSourceAttachmentRootPath(); if (path != null) { resolvedEntry.sourceAttachmentRootPath = path; } IClasspathAttribute[] attributes = chainedEntry.getExtraAttributes(); if (attributes != null) { resolvedEntry.extraAttributes = attributes; } }
if (sourceAttach != null) archive.put(TAG_SOURCEATTACHMENT, sourceAttach.toPortableString()); IPath sourceAttachRoot= cpEntry.getSourceAttachmentRootPath(); if (sourceAttachRoot != null) archive.put(TAG_SOURCEATTACHMENTROOT, sourceAttachRoot.toPortableString());
if (sourceAttach != null) archive.put(TAG_SOURCEATTACHMENT, sourceAttach.toPortableString()); IPath sourceAttachRoot= cpEntry.getSourceAttachmentRootPath(); if (sourceAttachRoot != null) archive.put(TAG_SOURCEATTACHMENTROOT, sourceAttachRoot.toPortableString());
if (sourceAttach != null) archive.put(TAG_SOURCEATTACHMENT, sourceAttach.toPortableString()); IPath sourceAttachRoot= cpEntry.getSourceAttachmentRootPath(); if (sourceAttachRoot != null) archive.put(TAG_SOURCEATTACHMENTROOT, sourceAttachRoot.toPortableString());
public ClasspathEntry withExtraAttributeRemoved(String attrName) { IClasspathAttribute[] changedAttributes = Arrays.stream(this.getExtraAttributes()) .filter(a -> !a.getName().equals(attrName)).toArray(IClasspathAttribute[]::new); return new ClasspathEntry( this.getContentKind(), this.getEntryKind(), this.getPath(), this.getInclusionPatterns(), this.getExclusionPatterns(), this.getSourceAttachmentPath(), this.getSourceAttachmentRootPath(), this.getOutputLocation(), this.getReferencingEntry(), this.isExported(), this.getAccessRules(), this.combineAccessRules(), changedAttributes); }
public ClasspathEntry resolvedDotDot(IPath reference) { IPath resolvedPath = resolveDotDot(reference, this.path); if (resolvedPath == this.path) return this; return new ClasspathEntry( getContentKind(), getEntryKind(), resolvedPath, this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), this.getReferencingEntry(), this.isExported, getAccessRules(), this.combineAccessRules, this.extraAttributes); }
public ClasspathEntry resolvedDotDot(IPath reference) { IPath resolvedPath = resolveDotDot(reference, this.path); if (resolvedPath == this.path) return this; return new ClasspathEntry( getContentKind(), getEntryKind(), resolvedPath, this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), this.getReferencingEntry(), this.isExported, getAccessRules(), this.combineAccessRules, this.extraAttributes); }
public ClasspathEntry resolvedDotDot(IPath reference) { IPath resolvedPath = resolveDotDot(reference, this.path); if (resolvedPath == this.path) return this; return new ClasspathEntry( getContentKind(), getEntryKind(), resolvedPath, this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), this.getReferencingEntry(), this.isExported, getAccessRules(), this.combineAccessRules, this.extraAttributes); }
public ClasspathEntry resolvedDotDot(IPath reference) { IPath resolvedPath = resolveDotDot(reference, this.path); if (resolvedPath == this.path) return this; return new ClasspathEntry( getContentKind(), getEntryKind(), resolvedPath, this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), this.getReferencingEntry(), this.isExported, getAccessRules(), this.combineAccessRules, this.extraAttributes); }
public ClasspathEntry resolvedDotDot(IPath reference) { IPath resolvedPath = resolveDotDot(reference, this.path); if (resolvedPath == this.path) return this; return new ClasspathEntry( getContentKind(), getEntryKind(), resolvedPath, this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), this.getReferencingEntry(), this.isExported, getAccessRules(), this.combineAccessRules, this.extraAttributes); }
public ClasspathEntry resolvedDotDot(IPath reference) { IPath resolvedPath = resolveDotDot(reference, this.path); if (resolvedPath == this.path) return this; return new ClasspathEntry( getContentKind(), getEntryKind(), resolvedPath, this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), this.getReferencingEntry(), this.isExported, getAccessRules(), this.combineAccessRules, this.extraAttributes); }
this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), referringEntry.isExported() || this.isExported, // duplicate container entry for tagging it as exported
/** * Used to perform export/restriction propagation across referring projects/containers */ public ClasspathEntry combineWith(ClasspathEntry referringEntry) { if (referringEntry == null) return this; if (referringEntry.isExported() || referringEntry.getAccessRuleSet() != null ) { boolean combine = this.entryKind == CPE_SOURCE || referringEntry.combineAccessRules(); return new ClasspathEntry( getContentKind(), getEntryKind(), getPath(), this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), referringEntry.isExported() || this.isExported, // duplicate container entry for tagging it as exported combine(referringEntry.getAccessRules(), getAccessRules(), combine), this.combineAccessRules, this.extraAttributes); } // no need to clone return this; }
/** * Used to perform export/restriction propagation across referring projects/containers */ public ClasspathEntry combineWith(ClasspathEntry referringEntry) { if (referringEntry == null) return this; if (referringEntry.isExported() || referringEntry.getAccessRuleSet() != null ) { boolean combine = this.entryKind == CPE_SOURCE || referringEntry.combineAccessRules(); return new ClasspathEntry( getContentKind(), getEntryKind(), getPath(), this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), referringEntry.isExported() || this.isExported, // duplicate container entry for tagging it as exported combine(referringEntry.getAccessRules(), getAccessRules(), combine), this.combineAccessRules, this.extraAttributes); } // no need to clone return this; }
/** * Used to perform export/restriction propagation across referring projects/containers */ public ClasspathEntry combineWith(ClasspathEntry referringEntry) { if (referringEntry == null) return this; if (referringEntry.isExported() || referringEntry.getAccessRuleSet() != null ) { boolean combine = this.entryKind == CPE_SOURCE || referringEntry.combineAccessRules(); return new ClasspathEntry( getContentKind(), getEntryKind(), getPath(), this.inclusionPatterns, this.exclusionPatterns, getSourceAttachmentPath(), getSourceAttachmentRootPath(), getOutputLocation(), referringEntry.isExported() || this.isExported, // duplicate container entry for tagging it as exported combine(referringEntry.getAccessRules(), getAccessRules(), combine), this.combineAccessRules, this.extraAttributes); } // no need to clone return this; }