WorkbenchHelp.setHelp(action, IJavaHelpContextIds.PARAMETER_HINTS_ACTION);  action= new TextOperationAction(JavaEditorMessages.getResourceBundle(), "ContentAssistCompletePrefix.", this, CONTENTASSIST_COMPLETE_PREFIX); action.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONTENT_ASSIST_COMPLETE_PREFIX); setAction("ContentAssistCompletePrefix", action); markAsStateDependentAction("ContentAssistCompletePrefix", true);
	protected void createActions() {				super.createActions();		Action action= new TextOperationAction(JavaEditorMessages.getResourceBundle(), "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$		WorkbenchHelp.setHelp(action, IJavaHelpContextIds.QUICK_FIX_ACTION);		action= new ContentAssistAction(JavaEditorMessages.getResourceBundle(), "ContentAssistProposal.", this); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);				setAction("ContentAssistProposal", action); //$NON-NLS-1$		markAsStateDependentAction("ContentAssistProposal", true); //$NON-NLS-1$		WorkbenchHelp.setHelp(action, IJavaHelpContextIds.CONTENT_ASSIST_ACTION);		action= new TextOperationAction(JavaEditorMessages.getResourceBundle(), "ContentAssistContextInformation.", this, ISourceViewer.CONTENTASSIST_CONTEXT_INFORMATION);	//$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONTENT_ASSIST_CONTEXT_INFORMATION);				setAction("ContentAssistContextInformation", action); //$NON-NLS-1$		markAsStateDependentAction("ContentAssistContextInformation", true); //$NON-NLS-1$		WorkbenchHelp.setHelp(action, IJavaHelpContextIds.PARAMETER_HINTS_ACTION);		action= new TextOperationAction(JavaEditorMessages.getResourceBundle(), "Comment.", this, ITextOperationTarget.PREFIX); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.COMMENT);				setAction("Comment", action); //$NON-NLS-1$		markAsStateDependentAction("Comment", true); //$NON-NLS-1$		WorkbenchHelp.setHelp(action, IJavaHelpContextIds.COMMENT_ACTION);		action= new TextOperationAction(JavaEditorMessages.getResourceBundle(), "Uncomment.", this, ITextOperationTarget.STRIP_PREFIX); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.UNCOMMENT);				setAction("Uncomment", action); //$NON-NLS-1$		markAsStateDependentAction("Uncomment", true); //$NON-NLS-1$		WorkbenchHelp.setHelp(action, IJavaHelpContextIds.UNCOMMENT_ACTION);		action= new TextOperationAction(JavaEditorMessages.getResourceBundle(), "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$				WorkbenchHelp.setHelp(action, IJavaHelpContextIds.FORMAT_ACTION);				action= new AddBlockCommentAction(JavaEditorMessages.getResourceBundle(), "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$				WorkbenchHelp.setHelp(action, IJavaHelpContextIds.ADD_BLOCK_COMMENT_ACTION);		action= new RemoveBlockCommentAction(JavaEditorMessages.getResourceBundle(), "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$				WorkbenchHelp.setHelp(action, IJavaHelpContextIds.REMOVE_BLOCK_COMMENT_ACTION);				action= new IndentAction(JavaEditorMessages.getResourceBundle(), "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$		WorkbenchHelp.setHelp(action, IJavaHelpContextIds.INDENT_ACTION);				action= new IndentAction(JavaEditorMessages.getResourceBundle(), "Indent.", this, true); //$NON-NLS-1$		setAction("IndentOnTab", action); //$NON-NLS-1$		markAsStateDependentAction("IndentOnTab", true); //$NON-NLS-1$		markAsSelectionDependentAction("IndentOnTab", true); //$NON-NLS-1$				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)});	}