fCorrectionCommands= new CorrectionCommandInstaller(); fCorrectionCommands.registerCommands(this);
	protected void createActions() {		super.createActions();		Action action= new TextOperationAction(JavaEditorMessages.getBundleForConstructedKeys(), "CorrectionAssistProposal.", this, CORRECTIONASSIST_PROPOSALS); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.CORRECTION_ASSIST_PROPOSALS);		setAction("CorrectionAssistProposal", action); //$NON-NLS-1$		markAsStateDependentAction("CorrectionAssistProposal", true); //$NON-NLS-1$		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.QUICK_FIX_ACTION);		action= new ContentAssistAction(JavaEditorMessages.getBundleForConstructedKeys(), "ContentAssistProposal.", this); //$NON-NLS-1$		action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);		setAction("ContentAssistProposal", action); //$NON-NLS-1$		markAsStateDependentAction("ContentAssistProposal", true); //$NON-NLS-1$		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.CONTENT_ASSIST_ACTION);		action= new TextOperationAction(JavaEditorMessages.getBundleForConstructedKeys(), "ContentAssistContextInformation.", this, ISourceViewer.CONTENTASSIST_CONTEXT_INFORMATION);	//$NON-NLS-1$		action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_CONTEXT_INFORMATION);		setAction("ContentAssistContextInformation", action); //$NON-NLS-1$		markAsStateDependentAction("ContentAssistContextInformation", true); //$NON-NLS-1$		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.PARAMETER_HINTS_ACTION);		action= new TextOperationAction(JavaEditorMessages.getBundleForConstructedKeys(), "Comment.", this, ITextOperationTarget.PREFIX); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.COMMENT);		setAction("Comment", action); //$NON-NLS-1$		markAsStateDependentAction("Comment", true); //$NON-NLS-1$		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.COMMENT_ACTION);		action= new TextOperationAction(JavaEditorMessages.getBundleForConstructedKeys(), "Uncomment.", this, ITextOperationTarget.STRIP_PREFIX); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.UNCOMMENT);		setAction("Uncomment", action); //$NON-NLS-1$		markAsStateDependentAction("Uncomment", true); //$NON-NLS-1$		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.UNCOMMENT_ACTION);		action= new ToggleCommentAction(JavaEditorMessages.getBundleForConstructedKeys(), "ToggleComment.", this); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.TOGGLE_COMMENT);		setAction("ToggleComment", action); //$NON-NLS-1$		markAsStateDependentAction("ToggleComment", true); //$NON-NLS-1$		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.TOGGLE_COMMENT_ACTION);		configureToggleCommentAction();		action= new TextOperationAction(JavaEditorMessages.getBundleForConstructedKeys(), "Format.", this, ISourceViewer.FORMAT); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.FORMAT);		setAction("Format", action); //$NON-NLS-1$		markAsStateDependentAction("Format", true); //$NON-NLS-1$		markAsSelectionDependentAction("Format", true); //$NON-NLS-1$		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.FORMAT_ACTION);		action= new AddBlockCommentAction(JavaEditorMessages.getBundleForConstructedKeys(), "AddBlockComment.", this);  //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.ADD_BLOCK_COMMENT);		setAction("AddBlockComment", action); //$NON-NLS-1$		markAsStateDependentAction("AddBlockComment", true); //$NON-NLS-1$		markAsSelectionDependentAction("AddBlockComment", true); //$NON-NLS-1$		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.ADD_BLOCK_COMMENT_ACTION);		action= new RemoveBlockCommentAction(JavaEditorMessages.getBundleForConstructedKeys(), "RemoveBlockComment.", this);  //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.REMOVE_BLOCK_COMMENT);		setAction("RemoveBlockComment", action); //$NON-NLS-1$		markAsStateDependentAction("RemoveBlockComment", true); //$NON-NLS-1$		markAsSelectionDependentAction("RemoveBlockComment", true); //$NON-NLS-1$		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.REMOVE_BLOCK_COMMENT_ACTION);		action= new IndentAction(JavaEditorMessages.getBundleForConstructedKeys(), "Indent.", this, false); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.INDENT);		setAction("Indent", action); //$NON-NLS-1$		markAsStateDependentAction("Indent", true); //$NON-NLS-1$		markAsSelectionDependentAction("Indent", true); //$NON-NLS-1$		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.INDENT_ACTION);		action= new IndentAction(JavaEditorMessages.getBundleForConstructedKeys(), "Indent.", this, true); //$NON-NLS-1$		setAction("IndentOnTab", action); //$NON-NLS-1$		markAsStateDependentAction("IndentOnTab", true); //$NON-NLS-1$		markAsSelectionDependentAction("IndentOnTab", true); //$NON-NLS-1$				// override the text editor actions with indenting move line actions		JavaMoveLinesAction[] moveLinesActions= JavaMoveLinesAction.createMoveCopyActionSet(JavaEditorMessages.getBundleForConstructedKeys(), this);		ResourceAction rAction= moveLinesActions[0];		rAction.setHelpContextId(IAbstractTextEditorHelpContextIds.MOVE_LINES_ACTION);		rAction.setActionDefinitionId(ITextEditorActionDefinitionIds.MOVE_LINES_UP);		setAction(ITextEditorActionConstants.MOVE_LINE_UP, rAction);		rAction= moveLinesActions[1];		rAction.setHelpContextId(IAbstractTextEditorHelpContextIds.MOVE_LINES_ACTION);		rAction.setActionDefinitionId(ITextEditorActionDefinitionIds.MOVE_LINES_DOWN);		setAction(ITextEditorActionConstants.MOVE_LINE_DOWN, rAction);		rAction= moveLinesActions[2];		rAction.setHelpContextId(IAbstractTextEditorHelpContextIds.COPY_LINES_ACTION);		rAction.setActionDefinitionId(ITextEditorActionDefinitionIds.COPY_LINES_UP);		setAction(ITextEditorActionConstants.COPY_LINE_UP, rAction);		rAction= moveLinesActions[3];		rAction.setHelpContextId(IAbstractTextEditorHelpContextIds.COPY_LINES_ACTION);		rAction.setActionDefinitionId(ITextEditorActionDefinitionIds.COPY_LINES_DOWN);		setAction(ITextEditorActionConstants.COPY_LINE_DOWN, rAction);		if (getPreferenceStore().getBoolean(PreferenceConstants.EDITOR_SMART_TAB)) {			// don't replace Shift Right - have to make sure their enablement is mutually exclusive//			removeActionActivationCode(ITextEditorActionConstants.SHIFT_RIGHT);			setActionActivationCode("IndentOnTab", '\t', -1, SWT.NONE); //$NON-NLS-1$		}		fGenerateActionGroup= new GenerateActionGroup(this, ITextEditorActionConstants.GROUP_EDIT);		ActionGroup rg= new RefactorActionGroup(this, ITextEditorActionConstants.GROUP_EDIT);		fActionGroups.addGroup(rg);		fActionGroups.addGroup(fGenerateActionGroup);		// We have to keep the context menu group separate to have better control over positioning		fContextMenuGroup= new CompositeActionGroup(new ActionGroup[] {			fGenerateActionGroup,			rg,			new LocalHistoryActionGroup(this, ITextEditorActionConstants.GROUP_EDIT)});	}