1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 15:15:25 +02:00

[186848] related - only show open view actions for containers

This commit is contained in:
David McKnight 2007-05-14 20:55:31 +00:00
parent b1bdd157f4
commit e972c253f0

View file

@ -1088,7 +1088,9 @@ public abstract class AbstractSystemViewAdapter implements ISystemViewElementAda
*/
public boolean showOpenViewActions(Object element)
{
return true;
if (element instanceof IAdaptable)
return hasChildren((IAdaptable)element);
return false;
}
/**