1
0
Fork 0
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:
Chris Wiebe 2004-08-16 22:25:00 +00:00
parent b516c01e02
commit 946fa0a576
3 changed files with 14 additions and 1 deletions

View file

@ -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
First draft, work in progress.

View file

@ -12,6 +12,7 @@
package org.eclipse.cdt.core.model;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IPath;
/**
* ISourceRoot
@ -24,6 +25,12 @@ public interface ISourceRoot extends ICContainer {
*/
boolean isOnSourceEntry(IResource resource);
/**
* @param path
* @return
*/
boolean isOnSourceEntry(IPath path);
/**
* @param element
* @return

View file

@ -61,7 +61,7 @@ public class SourceRoot extends CContainer implements ISourceRoot {
return isOnSourceEntry(path);
}
private boolean isOnSourceEntry(IPath path) {
public boolean isOnSourceEntry(IPath path) {
if (sourceEntry.getPath().isPrefixOf(path)
&& !CoreModelUtil.isExcluded(path, sourceEntry.fullExclusionPatternChars())) {
return true;