fEncodingSupport= new DefaultEncodingSupport(); fEncodingSupport.initialize(this);
	protected void createActions() {		super.createActions();		ActionGroup oeg, ovg, jsg;		fActionGroups= new CompositeActionGroup(new ActionGroup[] {			oeg= new OpenEditorActionGroup(this),			ovg= new OpenViewActionGroup(this),			jsg= new JavaSearchActionGroup(this)		});		fContextMenuGroup= new CompositeActionGroup(new ActionGroup[] {oeg, ovg, jsg});		fFoldingGroup= new FoldingActionGroup(this, getViewer());		ResourceAction resAction= new TextOperationAction(JavaEditorMessages.getBundleForConstructedKeys(), "ShowJavaDoc.", this, ISourceViewer.INFORMATION, true); //$NON-NLS-1$		resAction= new InformationDispatchAction(JavaEditorMessages.getBundleForConstructedKeys(), "ShowJavaDoc.", (TextOperationAction) resAction); //$NON-NLS-1$		resAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_JAVADOC);		setAction("ShowJavaDoc", resAction); //$NON-NLS-1$		PlatformUI.getWorkbench().getHelpSystem().setHelp(resAction, IJavaHelpContextIds.SHOW_JAVADOC_ACTION);		Action action= new GotoMatchingBracketAction(this);		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.GOTO_MATCHING_BRACKET);		setAction(GotoMatchingBracketAction.GOTO_MATCHING_BRACKET, action);		action= new TextOperationAction(JavaEditorMessages.getBundleForConstructedKeys(),"ShowOutline.", this, JavaSourceViewer.SHOW_OUTLINE, true); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.SHOW_OUTLINE);		setAction(IJavaEditorActionDefinitionIds.SHOW_OUTLINE, action);		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.SHOW_OUTLINE_ACTION);		action= new TextOperationAction(JavaEditorMessages.getBundleForConstructedKeys(),"OpenStructure.", this, JavaSourceViewer.OPEN_STRUCTURE, true); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_STRUCTURE);		setAction(IJavaEditorActionDefinitionIds.OPEN_STRUCTURE, action);		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.OPEN_STRUCTURE_ACTION);		action= new TextOperationAction(JavaEditorMessages.getBundleForConstructedKeys(),"OpenHierarchy.", this, JavaSourceViewer.SHOW_HIERARCHY, true); //$NON-NLS-1$		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_HIERARCHY);		setAction(IJavaEditorActionDefinitionIds.OPEN_HIERARCHY, action);		PlatformUI.getWorkbench().getHelpSystem().setHelp(action, IJavaHelpContextIds.OPEN_HIERARCHY_ACTION);		fEncodingSupport= new DefaultEncodingSupport();		fEncodingSupport.initialize(this);		fSelectionHistory= new SelectionHistory(this);		action= new StructureSelectEnclosingAction(this, fSelectionHistory);		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELECT_ENCLOSING);		setAction(StructureSelectionAction.ENCLOSING, action);		action= new StructureSelectNextAction(this, fSelectionHistory);		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELECT_NEXT);		setAction(StructureSelectionAction.NEXT, action);		action= new StructureSelectPreviousAction(this, fSelectionHistory);		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELECT_PREVIOUS);		setAction(StructureSelectionAction.PREVIOUS, action);		StructureSelectHistoryAction historyAction= new StructureSelectHistoryAction(this, fSelectionHistory);		historyAction.setActionDefinitionId(IJavaEditorActionDefinitionIds.SELECT_LAST);		setAction(StructureSelectionAction.HISTORY, historyAction);		fSelectionHistory.setHistoryAction(historyAction);		action= GoToNextPreviousMemberAction.newGoToNextMemberAction(this);		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.GOTO_NEXT_MEMBER);		setAction(GoToNextPreviousMemberAction.NEXT_MEMBER, action);		action= GoToNextPreviousMemberAction.newGoToPreviousMemberAction(this);		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.GOTO_PREVIOUS_MEMBER);		setAction(GoToNextPreviousMemberAction.PREVIOUS_MEMBER, action);		action= new FormatElementAction();		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.QUICK_FORMAT);		setAction("QuickFormat", action); //$NON-NLS-1$		markAsStateDependentAction("QuickFormat", true); //$NON-NLS-1$		action= new RemoveOccurrenceAnnotations(this);		action.setActionDefinitionId(IJavaEditorActionDefinitionIds.REMOVE_OCCURRENCE_ANNOTATIONS);		setAction("RemoveOccurrenceAnnotations", action); //$NON-NLS-1$		// add annotation actions for roll-over expand hover		action= new JavaSelectMarkerRulerAction2(JavaEditorMessages.getBundleForConstructedKeys(), "Editor.RulerAnnotationSelection.", this); //$NON-NLS-1$		setAction("AnnotationAction", action); //$NON-NLS-1$		// replace cut/copy paste actions with a version that implement 'add imports on paste'		action= new ClipboardOperationAction(JavaEditorMessages.getBundleForConstructedKeys(), "Editor.Cut.", this, ITextOperationTarget.CUT); //$NON-NLS-1$		setAction(ITextEditorActionConstants.CUT, action);		action= new ClipboardOperationAction(JavaEditorMessages.getBundleForConstructedKeys(), "Editor.Copy.", this, ITextOperationTarget.COPY); //$NON-NLS-1$		setAction(ITextEditorActionConstants.COPY, action);		action= new ClipboardOperationAction(JavaEditorMessages.getBundleForConstructedKeys(), "Editor.Paste.", this, ITextOperationTarget.PASTE); //$NON-NLS-1$		setAction(ITextEditorActionConstants.PASTE, action);	}