I've registered a key binding in the org.eclipse.ui.contexts.dialogAndWindow
context.
I've then associated a command handler
public class QuickActionsHandler extends AbstractHandler {
@Override
public Object execute(final ExecutionEvent event) throws ExecutionException {
...
Now, how do I get the active Dialog view part from the ExecutionEvent
?
Dialogs are not view parts - they are generally just windows extending org.eclipse.jface.dialogs.Dialog
Probably the best you can do is get the currently active Shell:
Shell shell = HandlerUtil.getActiveShell(event);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.