mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Small bug fix of the CView.
This commit is contained in:
parent
e03a6c0446
commit
ff806b07d1
2 changed files with 6 additions and 2 deletions
|
@ -130,6 +130,10 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
|
||||||
return getSourceRoots((ICProject)element);
|
return getSourceRoots((ICProject)element);
|
||||||
} else if (element instanceof ICContainer) {
|
} else if (element instanceof ICContainer) {
|
||||||
return getCResources((ICContainer)element);
|
return getCResources((ICContainer)element);
|
||||||
|
} else if (element instanceof IBinaryContainer) {
|
||||||
|
return NO_CHILDREN; // we deal with this in the CVIewContentProvider
|
||||||
|
} else if (element instanceof IArchiveContainer) {
|
||||||
|
return NO_CHILDREN; // we deal with this in the CViewContentProvider
|
||||||
} else if (element instanceof ITranslationUnit) {
|
} else if (element instanceof ITranslationUnit) {
|
||||||
// if we want to get the chidren of a translation unit
|
// if we want to get the chidren of a translation unit
|
||||||
if (fProvideMembers) {
|
if (fProvideMembers) {
|
||||||
|
|
|
@ -48,9 +48,9 @@ public class CViewContentProvider extends CElementContentProvider {
|
||||||
if (element instanceof ICProject) {
|
if (element instanceof ICProject) {
|
||||||
extras = getProjectChildren((ICProject)element);
|
extras = getProjectChildren((ICProject)element);
|
||||||
} else if (element instanceof IBinaryContainer) {
|
} else if (element instanceof IBinaryContainer) {
|
||||||
extras = ((IBinaryContainer)element).getBinaries();
|
extras = getExecutables((IBinaryContainer)element);
|
||||||
} else if (element instanceof IArchiveContainer) {
|
} else if (element instanceof IArchiveContainer) {
|
||||||
extras =((IArchiveContainer)element).getArchives();
|
extras = getArchives((IArchiveContainer)element);
|
||||||
} else if (element instanceof LibraryRefContainer) {
|
} else if (element instanceof LibraryRefContainer) {
|
||||||
extras = ((LibraryRefContainer)element).getChildren(element);
|
extras = ((LibraryRefContainer)element).getChildren(element);
|
||||||
} else if (element instanceof IncludeRefContainer) {
|
} else if (element instanceof IncludeRefContainer) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue