@Override
        public void run()
        {
            UIServiceSQL serviceSQL = DBWorkbench.getService(UIServiceSQL.class);
            if (serviceSQL != null) {
//                result = serviceSQL.openGeneratedScriptViewer(
//                    getExecutionContext(),
//                    allowSave ? UINavigatorMessages.editors_entity_dialog_persist_title : UINavigatorMessages.editors_entity_dialog_preview_title,
//                    UIIcon.SQL_PREVIEW,
//                    scriptGenerator,
//                    props,
//                    allowSave);
                result = serviceSQL.openSQLViewer(
                    getExecutionContext(),
                    getDatabaseObject().getName() + " - " + (allowSave ? UINavigatorMessages.editors_entity_dialog_persist_title : UINavigatorMessages.editors_entity_dialog_preview_title),
                    UIIcon.SQL_PREVIEW,
                    script.toString(),
                    allowSave,
                    true);
            } else {
                result = IDialogConstants.OK_ID;
            }
        }
Saves data in all nested editors
@param monitor progress monitor
plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/editors/entity/EntityEditor.java