Community
Participate
Working Groups
((IAdaptable)b).getAdapter(ISystemViewElementAdapter.class);
}
if (identb != null){
//FIXME NullPointerException is possible here
//Unless getAbsoluteName() API is documented to never allow null return
if(identa.getAbsoluteName(a).equals(identb.getAbsoluteName(b))) return true;
if(ident!=null) {
String absName = ident.getAbsoluteName(element);
if(absName!=null) return absName.hashCode();
return ident.hashCode();
//Since one adapter is typically used for many elements in RSE, performance
//is better if the original Element's hashCode is used rather than the
//adapter's hashCode.
//return ident.hashCode();
if (element != null) // adding check because I hit a null exception here once at startup