use of org.jkiss.dbeaver.ui.dialogs.connection.MigrateConnectionWizard in project dbeaver by serge-rider.
the class NavigatorHandlerConnectionMigrate method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
final ISelection currentSelection = HandlerUtil.getCurrentSelection(event);
ActiveWizardDialog dialog = new ActiveWizardDialog(window, new MigrateConnectionWizard(DBeaverCore.getInstance().getProjectRegistry().getActiveDataSourceRegistry(), currentSelection instanceof IStructuredSelection ? (IStructuredSelection) currentSelection : null));
dialog.open();
return null;
}
Aggregations