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

[181486] handle the absolute name specialy for SystemFilterSimple

This commit is contained in:
David McKnight 2007-04-11 18:55:09 +00:00
parent 402956f86f
commit b929b9ccc6

View file

@ -146,8 +146,15 @@ public class SystemViewFilterAdapter extends AbstractSystemViewAdapter
public String getAbsoluteName(Object element) public String getAbsoluteName(Object element)
{ {
ISystemFilter filter = getFilter(element); ISystemFilter filter = getFilter(element);
if (filter instanceof SystemFilterSimple)
{
return filter.getName();
}
else
{
return filter.getSystemFilterPoolManager().getName() + "." + filter.getParentFilterPool().getName() + "." + filter.getName(); //$NON-NLS-1$ //$NON-NLS-2$ return filter.getSystemFilterPoolManager().getName() + "." + filter.getParentFilterPool().getName() + "." + filter.getName(); //$NON-NLS-1$ //$NON-NLS-2$
} }
}
/** /**
* Return the type label for this object * Return the type label for this object
*/ */