use of org.jkiss.dbeaver.tasks.ui.wizard.EditTaskConfigurationDialog in project dbeaver by serge-rider.
the class TaskHandlerProperties method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
final ISelection selection = HandlerUtil.getCurrentSelection(event);
if (selection instanceof IStructuredSelection) {
IStructuredSelection structSelection = (IStructuredSelection) selection;
Object element = structSelection.getFirstElement();
if (element instanceof DBTTask) {
EditTaskConfigurationDialog dialog = new EditTaskConfigurationDialog(HandlerUtil.getActiveShell(event), (DBTTask) element);
dialog.open();
}
}
return null;
}
use of org.jkiss.dbeaver.tasks.ui.wizard.EditTaskConfigurationDialog in project dbeaver by dbeaver.
the class TaskHandlerProperties method execute.
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
final ISelection selection = HandlerUtil.getCurrentSelection(event);
if (selection instanceof IStructuredSelection) {
IStructuredSelection structSelection = (IStructuredSelection) selection;
Object element = structSelection.getFirstElement();
if (element instanceof DBTTask) {
EditTaskConfigurationDialog dialog = new EditTaskConfigurationDialog(HandlerUtil.getActiveShell(event), (DBTTask) element);
dialog.open();
}
}
return null;
}
Aggregations