mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
* model/org/eclipse/cdt/internal/coder/model/SourceRoot.java
This commit is contained in:
parent
b516c01e02
commit
946fa0a576
3 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-08-15 Chris Wiebe
|
||||||
|
|
||||||
|
make isOnSourceEntry(IPath) public method
|
||||||
|
* model/org/eclipse/cdt/core/model/ISourceRoot.java
|
||||||
|
* model/org/eclipse/cdt/internal/core/model/SourceRoot.java
|
||||||
|
|
||||||
2004-08-15 Alain Magloire
|
2004-08-15 Alain Magloire
|
||||||
|
|
||||||
First draft, work in progress.
|
First draft, work in progress.
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
package org.eclipse.cdt.core.model;
|
package org.eclipse.cdt.core.model;
|
||||||
|
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
|
import org.eclipse.core.runtime.IPath;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ISourceRoot
|
* ISourceRoot
|
||||||
|
@ -24,6 +25,12 @@ public interface ISourceRoot extends ICContainer {
|
||||||
*/
|
*/
|
||||||
boolean isOnSourceEntry(IResource resource);
|
boolean isOnSourceEntry(IResource resource);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param path
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
boolean isOnSourceEntry(IPath path);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param element
|
* @param element
|
||||||
* @return
|
* @return
|
||||||
|
|
|
@ -61,7 +61,7 @@ public class SourceRoot extends CContainer implements ISourceRoot {
|
||||||
return isOnSourceEntry(path);
|
return isOnSourceEntry(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isOnSourceEntry(IPath path) {
|
public boolean isOnSourceEntry(IPath path) {
|
||||||
if (sourceEntry.getPath().isPrefixOf(path)
|
if (sourceEntry.getPath().isPrefixOf(path)
|
||||||
&& !CoreModelUtil.isExcluded(path, sourceEntry.fullExclusionPatternChars())) {
|
&& !CoreModelUtil.isExcluded(path, sourceEntry.fullExclusionPatternChars())) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue