else if(p instanceof PackageAsFrameEditPart) {
PackageAsFrameEditPart packPart =
(PackageAsFrameEditPart)p;
packPart.removeEditPolicy(EditPolicyRoles.OPEN_ROLE);
policy = new OpenUMLClassDiagramJavaEditPolicy();
packPart.installEditPolicy(
EditPolicyRoles.OPEN_ROLE,
policy
);
}
}