Package org.eclipse.ui.internal.commands

Examples of org.eclipse.ui.internal.commands.ICommandImageService.bind()


  public final void setDisabledImageDescriptor(final ImageDescriptor newImage) {
    final String commandId = getActionDefinitionId();
    final int type = CommandImageManager.TYPE_DISABLED;
    final ICommandImageService commandImageService = (ICommandImageService) serviceLocator
        .getService(ICommandImageService.class);
    commandImageService.bind(commandId, type, style, newImage);
  }

  public final void setEnabled(final boolean enabled) {
    if (enabled != this.enabled) {
      final Boolean oldValue = this.enabled ? Boolean.TRUE
View Full Code Here


  public final void setHoverImageDescriptor(final ImageDescriptor newImage) {
    final String commandId = getActionDefinitionId();
    final int type = CommandImageManager.TYPE_HOVER;
    final ICommandImageService commandImageService = (ICommandImageService) serviceLocator
        .getService(ICommandImageService.class);
    commandImageService.bind(commandId, type, style, newImage);
  }

  public final void setId(final String id) {
    this.id = id;
  }
View Full Code Here

  public final void setImageDescriptor(final ImageDescriptor newImage) {
    final String commandId = getActionDefinitionId();
    final int type = CommandImageManager.TYPE_DEFAULT;
    final ICommandImageService commandImageService = (ICommandImageService) serviceLocator
        .getService(ICommandImageService.class);
    commandImageService.bind(commandId, type, style, newImage);
  }

  public final void setMenuCreator(final IMenuCreator creator) {
    // TODO Pulldown. This is complicated
  }
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.