Examples of refreshElements()


Examples of org.eclipse.ui.commands.ICommandService.refreshElements()

      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);
    }

    return null;
  }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.refreshElements()

    IPreferenceStore store = RutaAddonsPlugin.getDefault().getPreferenceStore();
    boolean b = store.getBoolean(TestingPreferenceConstants.EXTEND_CLASSPATH);
    store.setValue(TestingPreferenceConstants.EXTEND_CLASSPATH, !b);
    ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(
            ICommandService.class);
    service.refreshElements(event.getCommand().getId(), null);
    return null;
  }

  @Override
  public boolean isEnabled() {
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.refreshElements()

        composite.setAnnotationMode(typeString);
        String[] split = typeString.split("[.]");
        mode = split[split.length - 1];
        ICommandService commandService = (ICommandService) window.getService(ICommandService.class);
        if (commandService != null) {
          commandService.refreshElements("org.apache.uima.ruta.check.mode", null);
        }
      } catch (PartInitException e) {
        RutaAddonsPlugin.error(e);
        return Status.CANCEL_STATUS;
      }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.refreshElements()

    includeSubtypes.store();
    allTypes.store();
    extendClasspath.store();
    ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(
            ICommandService.class);
    service.refreshElements(ExtendClasspathHandler.COMMAND_ID, null);
    super.performApply();
  }
 
  @Override
  public boolean performOk() {
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.refreshElements()

    includeSubtypes.store();
    allTypes.store();
    extendClasspath.store();
    ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(
            ICommandService.class);
    service.refreshElements(ExtendClasspathHandler.COMMAND_ID, null);
    return super.performOk();
  }
}
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.refreshElements()

    includeSubtypes.loadDefault();
    allTypes.loadDefault();
    extendClasspath.loadDefault();
    ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(
            ICommandService.class);
    service.refreshElements(ExtendClasspathHandler.COMMAND_ID, null);
    super.performDefaults();
  }
 
  @Override
  protected void performDefaults() {
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.refreshElements()

    includeSubtypes.loadDefault();
    allTypes.loadDefault();
    extendClasspath.loadDefault();
    ICommandService service = (ICommandService) PlatformUI.getWorkbench().getService(
            ICommandService.class);
    service.refreshElements(ExtendClasspathHandler.COMMAND_ID, null);
    super.performDefaults();
  }
 
  @Override
  protected void performApply() {
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.refreshElements()

                    .getWorkbench().getActiveWorkbenchWindow()
                    .getService(ICommandService.class);

                if (commandService != null) {
                    for (String commandID : commandIDs) {
                        commandService.refreshElements(commandID, null);
                    }
                }
            }
        });
    }
View Full Code Here

Examples of org.eclipse.ui.commands.ICommandService.refreshElements()

          // be
          // updated.
          ICommandService commandService = (ICommandService) HandlerUtil.getActiveWorkbenchWindow(event).getService(ICommandService.class);
          Map filter = new HashMap();
          filter.put(IServiceScopes.WINDOW_SCOPE, HandlerUtil.getActiveWorkbenchWindow(event));
          commandService.refreshElements(event.getCommand().getId(), filter);
        }
      }
    }

    return null;
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.