} else if (action.isRetargetable()) {
IWorkbenchAction workbenchAction = action.getActionFactory().create(window);
if (workbenchAction instanceof RetargetAction) {
RetargetAction retargetAction = (RetargetAction) workbenchAction;
page.addPartListener(retargetAction);
retargetAction.partActivated(editor);
}
manager.add(workbenchAction);
} else {
manager.add(action);
}