Search in sources :

Example 11 with NativeToolWizardDialog

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

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 12 with NativeToolWizardDialog

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

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 13 with NativeToolWizardDialog

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

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 14 with NativeToolWizardDialog

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

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