Package org.eclipse.ui.internal.handlers

Examples of org.eclipse.ui.internal.handlers.IActionCommandMappingService.map()


      }
    }
    // this allows us to look up a "commandId" give the contributionId
    // and the actionId
    if (mappingService != null && commandId != null) {
      mappingService.map(mappingService.getGeneratedCommandId(primaryId,
          secondaryId), commandId);
    }

    return new ParameterizedCommand(command, null);
  }
View Full Code Here


      // Add a mapping from this action id to the command id.
      final IActionCommandMappingService mappingService = (IActionCommandMappingService) window
          .getService(IActionCommandMappingService.class);
      if (mappingService != null) {
        mappingService.map(actionId, command.getId());
      } else {
        // this is probably the shutdown case where the service has
        // already disposed.
        addWarning(
            warningsToLog,
View Full Code Here

      if (globalAction instanceof CommandAction) {
        final String actionId = globalAction.getId();
        if (actionId != null) {
          final IActionCommandMappingService mappingService = (IActionCommandMappingService) serviceLocator
              .getService(IActionCommandMappingService.class);
          mappingService.map(actionId, commandId);
        }
      } else {
        globalActionHandlersByCommandId.put(commandId,
            new ActionHandler(globalAction));
      }
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.