Search in sources :

Example 6 with NativeToolWizardDialog

use of org.jkiss.dbeaver.tasks.ui.nativetool.NativeToolWizardDialog in project dbeaver by serge-rider.

the class MySQLToolExport method execute.

@Override
public void execute(IWorkbenchWindow window, IWorkbenchPart activePart, Collection<DBSObject> objects) throws DBException {
    NativeToolWizardDialog dialog = new NativeToolWizardDialog(window, new MySQLExportWizard(objects));
    dialog.open();
}
Also used : NativeToolWizardDialog(org.jkiss.dbeaver.tasks.ui.nativetool.NativeToolWizardDialog)

Example 7 with NativeToolWizardDialog

use of org.jkiss.dbeaver.tasks.ui.nativetool.NativeToolWizardDialog in project dbeaver by serge-rider.

the class MySQLToolScript method execute.

@Override
public void execute(IWorkbenchWindow window, IWorkbenchPart activePart, Collection<DBSObject> objects) throws DBException {
    for (DBSObject object : objects) {
        if (object instanceof MySQLCatalog) {
            NativeToolWizardDialog dialog = new NativeToolWizardDialog(window, new MySQLScriptExecuteWizard((MySQLCatalog) object, false));
            dialog.open();
        }
    }
}
Also used : DBSObject(org.jkiss.dbeaver.model.struct.DBSObject) MySQLCatalog(org.jkiss.dbeaver.ext.mysql.model.MySQLCatalog) NativeToolWizardDialog(org.jkiss.dbeaver.tasks.ui.nativetool.NativeToolWizardDialog)

Aggregations

NativeToolWizardDialog (org.jkiss.dbeaver.tasks.ui.nativetool.NativeToolWizardDialog)7 DBSObject (org.jkiss.dbeaver.model.struct.DBSObject)5 MySQLCatalog (org.jkiss.dbeaver.ext.mysql.model.MySQLCatalog)2 PostgreDatabase (org.jkiss.dbeaver.ext.postgresql.model.PostgreDatabase)2 OracleDataSource (org.jkiss.dbeaver.ext.oracle.model.OracleDataSource)1 PostgreSchema (org.jkiss.dbeaver.ext.postgresql.model.PostgreSchema)1