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();
}
}
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();
}
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();
}
}
}
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();
}
}
}
Aggregations