use of pcgen.cdom.base.Categorized in project pcgen by PCGen.
the class AbstractReferenceContext method forget.
public <T extends Loadable> boolean forget(T obj) {
if (CATEGORIZED_CLASS.isAssignableFrom(obj.getClass())) {
Class cl = obj.getClass();
Categorized cdo = (Categorized) obj;
if (hasManufacturer(cl, cdo.getCDOMCategory())) {
// Work around a bug in the Eclipse 3.7.0/1 compiler by explicitly extracting a Category<?>
return getManufacturer(cl, (Category<?>) cdo.getCDOMCategory()).forgetObject(obj);
}
} else {
if (hasManufacturer(obj.getClass())) {
return getManufacturer((Class<T>) obj.getClass()).forgetObject(obj);
}
}
return false;
}
Aggregations