use of org.jkiss.dbeaver.ext.postgresql.model.PostgreSchema 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