mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
RESOLVED - bug 186908: C Compare editor should always be LEFT_TO_RIGHT
https://bugs.eclipse.org/bugs/show_bug.cgi?id=186908 Patch from Jason Montojo
This commit is contained in:
parent
103eaadb1c
commit
426fa40c5d
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2005, 2006 IBM Corporation and others.
|
* Copyright (c) 2005, 2007 IBM Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
|
@ -21,6 +21,7 @@ import org.eclipse.jface.text.TextViewer;
|
||||||
import org.eclipse.jface.text.source.SourceViewer;
|
import org.eclipse.jface.text.source.SourceViewer;
|
||||||
import org.eclipse.jface.util.IPropertyChangeListener;
|
import org.eclipse.jface.util.IPropertyChangeListener;
|
||||||
import org.eclipse.jface.util.PropertyChangeEvent;
|
import org.eclipse.jface.util.PropertyChangeEvent;
|
||||||
|
import org.eclipse.swt.SWT;
|
||||||
import org.eclipse.swt.events.DisposeEvent;
|
import org.eclipse.swt.events.DisposeEvent;
|
||||||
import org.eclipse.swt.graphics.RGB;
|
import org.eclipse.swt.graphics.RGB;
|
||||||
import org.eclipse.swt.widgets.Composite;
|
import org.eclipse.swt.widgets.Composite;
|
||||||
|
@ -43,7 +44,7 @@ public class CMergeViewer extends TextMergeViewer {
|
||||||
private CSourceViewerConfiguration fSourceViewerConfiguration;
|
private CSourceViewerConfiguration fSourceViewerConfiguration;
|
||||||
|
|
||||||
public CMergeViewer(Composite parent, int styles, CompareConfiguration mp) {
|
public CMergeViewer(Composite parent, int styles, CompareConfiguration mp) {
|
||||||
super(parent, styles, mp);
|
super(parent, styles | SWT.LEFT_TO_RIGHT, mp);
|
||||||
|
|
||||||
IPreferenceStore store = getPreferenceStore();
|
IPreferenceStore store = getPreferenceStore();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue