mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fix javadocs
This commit is contained in:
parent
0d79336fcb
commit
43b14542a6
3 changed files with 29 additions and 11 deletions
|
@ -439,8 +439,7 @@ public class CoreModel {
|
|||
* @param includePath
|
||||
* the absolute path of the include
|
||||
* @param isSystemInclude
|
||||
* wheter this include path should be consider the system
|
||||
* include path
|
||||
* whether this include path should be consider a system include path
|
||||
* @return IIncludeEntry
|
||||
*/
|
||||
public static IIncludeEntry newIncludeEntry(IPath resourcePath, IPath includePath, boolean isSystemInclude) {
|
||||
|
@ -457,9 +456,6 @@ public class CoreModel {
|
|||
* @param isSystemInclude
|
||||
* wheter this include path should be consider the system
|
||||
* include path
|
||||
* @param isRecursive
|
||||
* if the resource is a folder the include applied to all
|
||||
* recursively
|
||||
* @param exclusionPatterns
|
||||
* exclusion patterns in the resource if a container
|
||||
* @return IIincludeEntry
|
||||
|
@ -489,14 +485,35 @@ public class CoreModel {
|
|||
*/
|
||||
public static IIncludeEntry newIncludeEntry(IPath resourcePath, IPath includePath, IPath basePath, boolean isSystemInclude,
|
||||
IPath[] exclusionPatterns) {
|
||||
return new IncludeEntry(resourcePath, includePath, basePath, isSystemInclude, exclusionPatterns);
|
||||
return newIncludeEntry(resourcePath, includePath, basePath, isSystemInclude, exclusionPatterns, resourcePath == null || resourcePath.isEmpty());
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates and returns a new entry of kind <code>CDT_INCLUDE</code>
|
||||
*
|
||||
* @param path
|
||||
* the affected project-relative resource path
|
||||
* @param includePath
|
||||
* the path of the include
|
||||
* @param basePath
|
||||
* the base path of the include
|
||||
* @param isSystemInclude
|
||||
* wheter this include path should be consider the system
|
||||
* include path
|
||||
* @param exclusionPatterns
|
||||
* exclusion patterns in the resource if a container
|
||||
* @param isExported
|
||||
* if the entry ix exported to reference projects
|
||||
* @return IIincludeEntry
|
||||
*/
|
||||
public static IIncludeEntry newIncludeEntry(IPath resourcePath, IPath includePath, IPath basePath, boolean isSystemInclude,
|
||||
IPath[] exclusionPatterns, boolean isExported) {
|
||||
return new IncludeEntry(resourcePath, includePath, basePath, isSystemInclude, exclusionPatterns, isExported);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates and returns an entry kind <code>CDT_MACRO</code>
|
||||
*
|
||||
* @param path
|
||||
* the affected workspace-relative resource path
|
||||
* @param macroName
|
||||
* the name of the macro
|
||||
* @param macroValue
|
||||
|
|
|
@ -19,8 +19,9 @@ public class IncludeEntry extends APathEntry implements IIncludeEntry {
|
|||
IPath includePath;
|
||||
boolean isSystemInclude;
|
||||
|
||||
public IncludeEntry(IPath resourcePath, IPath includePath, IPath basePath, boolean isSystemInclude, IPath[] exclusionPatterns) {
|
||||
super(IIncludeEntry.CDT_INCLUDE, resourcePath, basePath, exclusionPatterns, resourcePath == null);
|
||||
public IncludeEntry(IPath resourcePath, IPath includePath, IPath basePath, boolean isSystemInclude,
|
||||
IPath[] exclusionPatterns, boolean isExported) {
|
||||
super(IIncludeEntry.CDT_INCLUDE, resourcePath, basePath, exclusionPatterns, isExported);
|
||||
this.includePath = includePath;
|
||||
this.isSystemInclude = isSystemInclude;
|
||||
}
|
||||
|
|
|
@ -735,7 +735,7 @@ public class PathEntryManager implements ICDescriptorListener {
|
|||
if (element.hasAttribute(ATTRIBUTE_SYSTEM)) {
|
||||
isSystemInclude = element.getAttribute(ATTRIBUTE_SYSTEM).equals(VALUE_TRUE);
|
||||
}
|
||||
return CoreModel.newIncludeEntry(path, includePath, basePath, isSystemInclude, exclusionPatterns);
|
||||
return CoreModel.newIncludeEntry(path, includePath, basePath, isSystemInclude, exclusionPatterns, isExported);
|
||||
}
|
||||
case IPathEntry.CDT_MACRO :
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue