model = entity.getModel();
}
if (model != null) {
SubclassEntityDialog dialog = new SubclassEntityDialog(getWindow().getShell(), model, entity, model.getModelGroup().getEditingModel());
dialog.setBlockOnOpen(true);
int results = dialog.open();
if (results == Window.OK) {
String entityName = dialog.getEntityName();
if (entityName != null && entityName.trim().length() > 0) {
try {
EOEntity parentEntity = dialog.getParentEntity();