mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 02:36:01 +02:00
Fix for 195216: CNavigatorContentProvider should handle hasChildren for IProjects
This commit is contained in:
parent
ad07d96464
commit
1f6a0f97e1
1 changed files with 11 additions and 0 deletions
|
@ -252,6 +252,17 @@ public class CNavigatorContentProvider extends CViewContentProvider implements I
|
|||
return children;
|
||||
}
|
||||
|
||||
/*
|
||||
* @see org.eclipse.cdt.internal.ui.cview.CViewContentProvider#hasChildren(java.lang.Object)
|
||||
*/
|
||||
public boolean hasChildren(Object element) {
|
||||
if (element instanceof IProject) {
|
||||
IProject project= (IProject) element;
|
||||
return project.isAccessible();
|
||||
}
|
||||
return super.hasChildren(element);
|
||||
}
|
||||
|
||||
/*
|
||||
* @see org.eclipse.ui.navigator.IPipelinedTreeContentProvider#getPipelinedChildren(java.lang.Object, java.util.Set)
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue