if (results == Window.OK) {
String entityName = dialog.getEntityName();
if (entityName != null && entityName.trim().length() > 0) {
try {
EOEntity parentEntity = dialog.getParentEntity();
InheritanceType inheritanceType = dialog.getInheritanceType();
String restrictingQualifier = dialog.getRestrictingQualifier();
EOModel destinationModel = dialog.getDestinationModel();
SubclassOperation operation = new SubclassOperation(parentEntity, inheritanceType, destinationModel, entityName, restrictingQualifier);
operation.addContext(EOModelUtils.getUndoContext(model));
IOperationHistory operationHistory = PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();