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
|
* @param includePath
|
||||||
* the absolute path of the include
|
* the absolute path of the include
|
||||||
* @param isSystemInclude
|
* @param isSystemInclude
|
||||||
* wheter this include path should be consider the system
|
* whether this include path should be consider a system include path
|
||||||
* include path
|
|
||||||
* @return IIncludeEntry
|
* @return IIncludeEntry
|
||||||
*/
|
*/
|
||||||
public static IIncludeEntry newIncludeEntry(IPath resourcePath, IPath includePath, boolean isSystemInclude) {
|
public static IIncludeEntry newIncludeEntry(IPath resourcePath, IPath includePath, boolean isSystemInclude) {
|
||||||
|
@ -457,9 +456,6 @@ public class CoreModel {
|
||||||
* @param isSystemInclude
|
* @param isSystemInclude
|
||||||
* wheter this include path should be consider the system
|
* wheter this include path should be consider the system
|
||||||
* include path
|
* include path
|
||||||
* @param isRecursive
|
|
||||||
* if the resource is a folder the include applied to all
|
|
||||||
* recursively
|
|
||||||
* @param exclusionPatterns
|
* @param exclusionPatterns
|
||||||
* exclusion patterns in the resource if a container
|
* exclusion patterns in the resource if a container
|
||||||
* @return IIincludeEntry
|
* @return IIincludeEntry
|
||||||
|
@ -489,14 +485,35 @@ public class CoreModel {
|
||||||
*/
|
*/
|
||||||
public static IIncludeEntry newIncludeEntry(IPath resourcePath, IPath includePath, IPath basePath, boolean isSystemInclude,
|
public static IIncludeEntry newIncludeEntry(IPath resourcePath, IPath includePath, IPath basePath, boolean isSystemInclude,
|
||||||
IPath[] exclusionPatterns) {
|
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>
|
* Creates and returns an entry kind <code>CDT_MACRO</code>
|
||||||
*
|
*
|
||||||
* @param path
|
|
||||||
* the affected workspace-relative resource path
|
|
||||||
* @param macroName
|
* @param macroName
|
||||||
* the name of the macro
|
* the name of the macro
|
||||||
* @param macroValue
|
* @param macroValue
|
||||||
|
|
|
@ -19,8 +19,9 @@ public class IncludeEntry extends APathEntry implements IIncludeEntry {
|
||||||
IPath includePath;
|
IPath includePath;
|
||||||
boolean isSystemInclude;
|
boolean isSystemInclude;
|
||||||
|
|
||||||
public IncludeEntry(IPath resourcePath, IPath includePath, IPath basePath, boolean isSystemInclude, IPath[] exclusionPatterns) {
|
public IncludeEntry(IPath resourcePath, IPath includePath, IPath basePath, boolean isSystemInclude,
|
||||||
super(IIncludeEntry.CDT_INCLUDE, resourcePath, basePath, exclusionPatterns, resourcePath == null);
|
IPath[] exclusionPatterns, boolean isExported) {
|
||||||
|
super(IIncludeEntry.CDT_INCLUDE, resourcePath, basePath, exclusionPatterns, isExported);
|
||||||
this.includePath = includePath;
|
this.includePath = includePath;
|
||||||
this.isSystemInclude = isSystemInclude;
|
this.isSystemInclude = isSystemInclude;
|
||||||
}
|
}
|
||||||
|
|
|
@ -735,7 +735,7 @@ public class PathEntryManager implements ICDescriptorListener {
|
||||||
if (element.hasAttribute(ATTRIBUTE_SYSTEM)) {
|
if (element.hasAttribute(ATTRIBUTE_SYSTEM)) {
|
||||||
isSystemInclude = element.getAttribute(ATTRIBUTE_SYSTEM).equals(VALUE_TRUE);
|
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 :
|
case IPathEntry.CDT_MACRO :
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue