mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
get children of the IIncludeReference and ILibraryReference.
This commit is contained in:
parent
c827e9e543
commit
4d63aafdaa
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,8 @@ import org.eclipse.cdt.core.model.ICElement;
|
|||
import org.eclipse.cdt.core.model.ICModel;
|
||||
import org.eclipse.cdt.core.model.ICProject;
|
||||
import org.eclipse.cdt.core.model.IInclude;
|
||||
import org.eclipse.cdt.core.model.IIncludeReference;
|
||||
import org.eclipse.cdt.core.model.ILibraryReference;
|
||||
import org.eclipse.cdt.core.model.IParent;
|
||||
import org.eclipse.cdt.core.model.ISourceReference;
|
||||
import org.eclipse.cdt.core.model.ISourceRoot;
|
||||
|
@ -171,6 +173,10 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
|
|||
}
|
||||
return getTranslationUnitChildren(tu);
|
||||
}
|
||||
} else if (element instanceof IIncludeReference) {
|
||||
return ((IIncludeReference)element).getChildren();
|
||||
} else if (element instanceof ILibraryReference) {
|
||||
return ((ILibraryReference)element).getChildren();
|
||||
} else if (element instanceof ISourceReference && element instanceof IParent) {
|
||||
return ((IParent)element).getChildren();
|
||||
} else if (element instanceof IProject) {
|
||||
|
|
Loading…
Add table
Reference in a new issue