use of org.jkiss.dbeaver.ui.dialogs.tools.ToolWizardDialog in project dbeaver by serge-rider.
the class PostgreToolBackup method execute.
@Override
public void execute(IWorkbenchWindow window, IWorkbenchPart activePart, Collection<DBSObject> objects) throws DBException {
ToolWizardDialog dialog = new ToolWizardDialog(window, new PostgreBackupWizard(objects));
dialog.open();
}
use of org.jkiss.dbeaver.ui.dialogs.tools.ToolWizardDialog 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;
}
ToolWizardDialog dialog = new ToolWizardDialog(window, new PostgreRestoreWizard(database));
dialog.open();
}
}
Aggregations