Search in sources :

Example 1 with NativeToolWizardDialog

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

the class PostgreToolScript method execute.

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

Example 2 with NativeToolWizardDialog

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

the class MySQLToolImport 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, true));
            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)

Example 3 with NativeToolWizardDialog

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

the class PostgreToolBackup method execute.

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

Example 4 with NativeToolWizardDialog

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

the class PostgreToolRestore method execute.

@Override
public void execute(IWorkbenchWindow window, IWorkbenchPart activePart, Collection<DBSObject> objects) throws DBException {
    for (DBSObject object : objects) {
        PostgreDatabase database;
        if (object instanceof PostgreSchema) {
            database = ((PostgreSchema) object).getDatabase();
        } else if (object instanceof PostgreDatabase) {
            database = (PostgreDatabase) object;
        } else {
            continue;
        }
        NativeToolWizardDialog dialog = new NativeToolWizardDialog(window, new PostgreRestoreWizard(database));
        dialog.open();
    }
}
Also used : DBSObject(org.jkiss.dbeaver.model.struct.DBSObject) PostgreDatabase(org.jkiss.dbeaver.ext.postgresql.model.PostgreDatabase) PostgreSchema(org.jkiss.dbeaver.ext.postgresql.model.PostgreSchema) NativeToolWizardDialog(org.jkiss.dbeaver.tasks.ui.nativetool.NativeToolWizardDialog)

Example 5 with NativeToolWizardDialog

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

the class OracleToolScript method execute.

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

Aggregations

NativeToolWizardDialog (org.jkiss.dbeaver.tasks.ui.nativetool.NativeToolWizardDialog)14 DBSObject (org.jkiss.dbeaver.model.struct.DBSObject)10 MySQLCatalog (org.jkiss.dbeaver.ext.mysql.model.MySQLCatalog)4 PostgreDatabase (org.jkiss.dbeaver.ext.postgresql.model.PostgreDatabase)4 OracleDataSource (org.jkiss.dbeaver.ext.oracle.model.OracleDataSource)2 PostgreSchema (org.jkiss.dbeaver.ext.postgresql.model.PostgreSchema)2