Hi Tony,
please verify and check in the following method:
The method getGeneralization produced a ClassCastException. Now it will return
the parent of a generalization.
/**
* Returns the generalization/superclass for the given model generalizable
* model element (i.e. Class).
*
* @param object model element
* @return GeneralizableElement super class
*/
public GeneralizableElement getGeneralization(Object object)
{
if ((object == null) || !(object instanceof GeneralizableElement))
{
return null;
}
GeneralizableElement element = (GeneralizableElement) object;
Iterator i =
model.getCore().getAChildGeneralization().getGeneralization(element).
iterator();
if (i.hasNext())
{
Generalization generalization = (Generalization) i.next();
return generalization.getParent();
}
return null;
}
J�rgen Dufner
--
Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte
sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte Kopieren
dieser E-Mail oder die unbefugte Weitergabe der enthaltenenen Informationen
ist nicht gestattet.
The information contained in this message is confidential or protected by
law. If you are not the intended recipient, please contact the sender and
delete this message. Any unauthorised copying of this message or
unauthorised distribution of the information contained herein is prohibited.
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel