public void openFactoryInputDialog(DBSchema schema, DBObjectType objectType) {
ObjectFactoryInputForm inputForm =
objectType == DBObjectType.FUNCTION ? new FunctionFactoryInputForm(schema, objectType, 0) :
objectType == DBObjectType.PROCEDURE ? new ProcedureFactoryInputForm(schema, objectType, 0) : null;
if (inputForm == null) {
MessageUtil.showErrorDialog("Creation of " + objectType.getListName() + " is not supported yet.", "Operation not supported");
} else {
ObjectFactoryInputDialog dialog = new ObjectFactoryInputDialog(inputForm);