1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +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,7 +146,14 @@ public class SystemViewFilterAdapter extends AbstractSystemViewAdapter
public String getAbsoluteName(Object element)
{
ISystemFilter filter = getFilter(element);
return filter.getSystemFilterPoolManager().getName() + "." + filter.getParentFilterPool().getName() + "." + filter.getName(); //$NON-NLS-1$ //$NON-NLS-2$
if (filter instanceof SystemFilterSimple)
{
return filter.getName();
}
else
{
return filter.getSystemFilterPoolManager().getName() + "." + filter.getParentFilterPool().getName() + "." + filter.getName(); //$NON-NLS-1$ //$NON-NLS-2$
}
}
/**
* Return the type label for this object