* @param nsSet the namespace set to adjust
* @return The correct namespace set to use for a super reference
*/
public Set<INamespaceDefinition> adjustNamespaceSetForSuper(IDefinition superDef, Set<INamespaceDefinition> nsSet)
{
ClassDefinitionBase containingClass = getContainingClass();
if (superDef instanceof ClassDefinition &&
nsSet.contains(containingClass.getProtectedNamespaceReference()))
{
Set<INamespaceDefinition> adjustedSet = new LinkedHashSet<INamespaceDefinition>();
adjustedSet.addAll(nsSet);
adjustedSet.remove(containingClass.getProtectedNamespaceReference());
adjustedSet.add(((ClassDefinition)superDef).getProtectedNamespaceReference());
return adjustedSet;
}
return nsSet;
}