@Execute public void execute( IWorkbench workbench, IEclipseContext context, @Named(IServiceConstants.ACTIVE_SHELL) Shell shell) throws InvocationTargetException, InterruptedException { if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
@Execute void close(IWorkbench workbench) { workbench.close(); }
@Execute public void execute(IWorkbench workbench, Shell shell) { if (MessageDialog.openConfirm(shell, "Confirmation", "Do you want to exit?")) { workbench.close(); } }
@Execute public void execute(IWorkbench workbench) { workbench.close(); }