Bug 71354 [painting] IAE in StyledText.getBidiSegments upon revert
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaSourceViewer.java
Map map= new Hashtable(JavaCore.getOptions());
		
		context.storeToMap(PreferenceConstants.getPreferenceStore(), map, false);
		context.setProperty(FormattingContextProperties.CONTEXT_PREFERENCES, map);
		
		return context;
	}
	/*
	 * @see ITextOperationTarget#doOperation(int)
	 */
	public void doOperation(int operation) {
		if (getTextWidget() == null)
			return;
		switch (operation) {
			case SHOW_OUTLINE:
				fOutlinePresenter.showInformation();
				return;
			case OPEN_STRUCTURE:
				fStructurePresenter.showInformation();
				return;
			case SHOW_HIERARCHY:
				fHierarchyPresenter.showInformation();
				return;	
		}
		
		super.doOperation(operation);
	}
	/*
	 * @see ITextOperationTarget#canDoOperation(int)
	 */