throw new InternalErrorException(this, null, "Composite Entity \""
+ model.getFullName() + "\" is not an instance of "
+ "SingleRuleTransformer or CompositeActorMatcher.");
}
ExtendedGraphFrame frame = new TransformationEditor((CompositeEntity) model, this,
defaultLibrary);
try {
setFrame(frame);
} catch (IllegalActionException ex) {
throw new InternalErrorException(ex);
}
frame.setBackground(BACKGROUND_COLOR);
frame.pack();
frame.centerOnScreen();
frame.setVisible(true);
}