Community
Participate
Working Groups
unregisterAction(action);
IWorkbenchPartSite partSite = workbenchPartSite;
if (parent != null) {
KeyBindingService currentParent = parent;
while (currentParent != null) {
partSite = currentParent.workbenchPartSite;
currentParent = currentParent.parent;
}
String commandId = action.getActionDefinitionId();
if (commandId != null) {
for (IAction registeredAction : actionToProxy.keySet()) {
IHandlerService hs = (IHandlerService) workbenchPartSite
.getService(IHandlerService.class);
actionToProxy.put(action, hs.activateHandler(commandId, new ActionHandler(action),
new LegacyHandlerSubmissionExpression(null, workbenchPartSite.getShell(),
new LegacyHandlerSubmissionExpression(null, partSite.getShell(), partSite)));
workbenchPartSite)));
if (handlerActivations == null) {
handlerActivations = new ArrayList();
} else {
if (handlerActivations.contains(eActivation)) {
return;
handlerActivations = new ArrayList(handlerActivations);
handlerActivations.add(eActivation);