1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Revert unintended change (blame Mylar)

This commit is contained in:
Anton Leherbauer 2007-05-29 08:47:00 +00:00
parent d8c6b82a23
commit 6d29df9b7a

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2005, 2007 IBM Corporation and others.
* Copyright (c) 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -8,7 +8,6 @@
* Contributors:
* IBM Corporation - initial API and implementation
* QNX Software System
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.ui;
@ -245,14 +244,6 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
}
return true;
}
if (element instanceof IProject) {
IProject project= (IProject)element;
return project.isAccessible();
}
if (element instanceof IFolder) {
IFolder folder= (IFolder)element;
return folder.isAccessible();
}
if (element instanceof IParent) {
// when we have C children return true, else we fetch all the children
@ -260,9 +251,6 @@ public class BaseCElementContentProvider implements ITreeContentProvider {
return true;
}
}
if (element instanceof CElementGrouping) {
return true;
}
Object[] children= getChildren(element);
return (children != null) && children.length > 0;
}