IHandlerActivation activation= handlerService.activateHandler(id, handler, new LegacyHandlerSubmissionExpression(null, null, editor.getSite()), ISources.ACTIVE_SITE);
IHandlerActivation activation= handlerService.activateHandler(id, handler, new LegacyHandlerSubmissionExpression(null, null, editor.getSite()));
	public void registerCommands(CompilationUnitEditor editor) {		IWorkbench workbench= PlatformUI.getWorkbench();		ICommandService commandService= (ICommandService) workbench.getAdapter(ICommandService.class);		IHandlerService handlerService= (IHandlerService) workbench.getAdapter(IHandlerService.class);		if (commandService == null || handlerService == null) {			return;		}				if (fCorrectionHandlerActivations != null) {			JavaPlugin.logErrorMessage("correction handler activations not released"); //$NON-NLS-1$		}		fCorrectionHandlerActivations= new ArrayList();				Collection definedCommandIds= commandService.getDefinedCommandIds();		for (Iterator iter= definedCommandIds.iterator(); iter.hasNext();) {			String id= (String) iter.next();			if (id.startsWith(COMMAND_PREFIX)) {				boolean isAssist= id.endsWith(ASSIST_SUFFIX);				CorrectionCommandHandler handler= new CorrectionCommandHandler(editor, id, isAssist);				IHandlerActivation activation= handlerService.activateHandler(id, handler, new LegacyHandlerSubmissionExpression(null, null, editor.getSite()), ISources.ACTIVE_SITE);				fCorrectionHandlerActivations.add(activation);			}		}	}