public Object execute(ExecutionEvent event) throws ExecutionException {
final IWorkbenchWindow activeWorkbenchWindow = HandlerUtil
.getActiveWorkbenchWindowChecked(event);
if (activeWorkbenchWindow instanceof WorkbenchWindow) {
WorkbenchWindow window = (WorkbenchWindow) activeWorkbenchWindow;
window.toggleToolbarVisibility();
ICommandService commandService = (ICommandService) activeWorkbenchWindow
.getService(ICommandService.class);
Map filter = new HashMap();
filter.put(IServiceScopes.WINDOW_SCOPE, window);
commandService.refreshElements(event.getCommand().getId(), filter);