IClassHandling<?, ?> clH = (IClassHandling<?, ?>)elH;
if(p instanceof ClassEditPart) {
ClassEditPart classPart = (ClassEditPart)p;
classPart.removeEditPolicy(EditPolicyRoles.OPEN_ROLE);
policy = new OpenUMLClassJavaEditPolicy(clH);
classPart.installEditPolicy(
EditPolicyRoles.OPEN_ROLE,
policy
);
}
else if(p instanceof Class2EditPart) {