Bug 33260 [keybinding] Need to update plugin.xml action declarations with new scheme
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
}
		
		return segments;
	}
		
	/**
	 * Returns a segmentation of the given line appropriate for bidi rendering. The default
	 * implementation returns only the string literals of a java code line as segments.
	 * 
	 * @param lineOffset the offset of the line
	 * @param line the content of the line
	 * @return the line's bidi segmentation
	 */
	protected int[] getBidiLineSegments(int widgetLineOffset, String line) {
		IDocumentProvider provider= getDocumentProvider();
		if (provider != null && line != null && line.length() > 0) {
			IDocument document= provider.getDocument(getEditorInput());
			if (document != null)
				try {
					
					int lineOffset;
					
					ISourceViewer sourceViewer= getSourceViewer();
					if (sourceViewer instanceof ITextViewerExtension3) {
						ITextViewerExtension3 extension= (ITextViewerExtension3) sourceViewer;
						lineOffset= extension.widgetOffset2ModelOffset(widgetLineOffset);
					} else {
						IRegion visible= sourceViewer.getVisibleRegion();
						lineOffset= visible.getOffset() + widgetLineOffset;
					}