Examples of toggleToolbarVisibility()


Examples of org.eclipse.ui.internal.WorkbenchWindow.toggleToolbarVisibility()

  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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.