if (!(parent instanceof TableauFrame)) {
MessageHandler.error("Cannot display documentation!");
}
Effigy effigy = ((TableauFrame) parent).getEffigy();
try {
DocEffigy newEffigy = new DocEffigy((CompositeEntity) effigy
.getContainer(), effigy.getContainer().uniqueName(
"parentClass"));
newEffigy.setDocAttribute(doc);
DocTableau tableau = new DocTableau(newEffigy, "docTableau");
tableau.show();
} catch (KernelException e) {
MessageHandler.error("Error opening documentation", e);
}