Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Majewski2018-11-09 10:15:22 +0000
committerLars Vogel2018-11-09 13:35:04 +0000
commit5016236989cc010743af96885fdca75566cf55cb (patch)
tree3020dc25007e0350c1df79e12d4a0c46aed8ea58
parentf05a984ee26f854f952710f9a4487dd8f6058d8a (diff)
downloadeclipse.platform.team-5016236989cc010743af96885fdca75566cf55cb.tar.gz
eclipse.platform.team-5016236989cc010743af96885fdca75566cf55cb.tar.xz
eclipse.platform.team-5016236989cc010743af96885fdca75566cf55cb.zip
Bug 540474 - Remove support for outdated Motif, Carbon and Photon in
TextMergeViewer Change-Id: I8d86fdab9f0b7819ccb80aca6183da7b5207d305 Signed-off-by: Mike Majewski <mike.majewski@email.de>
-rw-r--r--bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java36
1 files changed, 12 insertions, 24 deletions
diff --git a/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java b/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
index 3265970c9..c652562a7 100644
--- a/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
+++ b/bundles/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java
@@ -348,8 +348,6 @@ public class TextMergeViewer extends ContentMergeViewer implements IAdaptable {
private boolean fSubDoc= true;
private IPositionUpdater fPositionUpdater;
- private boolean fIsMotif;
- private boolean fIsCarbon;
private boolean fIsMac;
private boolean fHasErrors;
@@ -1542,13 +1540,8 @@ public class TextMergeViewer extends ContentMergeViewer implements IAdaptable {
fSymbolicFontName= getSymbolicFontName();
- fIsMotif= Util.isMotif();
- fIsCarbon= Util.isCarbon();
fIsMac= Util.isMac();
- if (fIsMotif)
- fMarginWidth= 0;
-
fPreferenceChangeListener= event -> TextMergeViewer.this.handlePropertyChangeEvent(event);
fPreferenceStore= createChainedPreferenceStore();
@@ -2252,7 +2245,7 @@ public class TextMergeViewer extends ContentMergeViewer implements IAdaptable {
if (Math.min(ly, ry) >= visibleHeight)
break;
- int SIZE= fIsCarbon ? 30 : 20;
+ int SIZE = 20;
int cx= (w-SIZE)/2;
int cy= ((ly+lh/2) + (ry+rh/2) - SIZE)/2;
if (my >= cy && my < cy+SIZE && mx >= cx && mx < cx+SIZE) {
@@ -4195,12 +4188,10 @@ public class TextMergeViewer extends ContentMergeViewer implements IAdaptable {
g.setBackground(canvas.getBackground());
g.fillRectangle(x+1, 0, w-2, size.y);
- if (!fIsMotif) {
- // draw thin line between center ruler and both texts
- g.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW));
- g.fillRectangle(0, 0, 1, size.y);
- g.fillRectangle(w-1, 0, 1, size.y);
- }
+ // draw thin line between center ruler and both texts
+ g.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW));
+ g.fillRectangle(0, 0, 1, size.y);
+ g.fillRectangle(w - 1, 0, 1, size.y);
if (! fHighlightRanges)
return;
@@ -4339,14 +4330,12 @@ public class TextMergeViewer extends ContentMergeViewer implements IAdaptable {
g.setBackground(canvas.getBackground());
g.fillRectangle(x, 0, w, size.y);
- if (!fIsMotif) {
- // draw thin line between ruler and text
- g.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW));
- if (right)
- g.fillRectangle(0, 0, 1, size.y);
- else
- g.fillRectangle(size.x-1, 0, 1, size.y);
- }
+ // draw thin line between ruler and text
+ g.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW));
+ if (right)
+ g.fillRectangle(0, 0, 1, size.y);
+ else
+ g.fillRectangle(size.x - 1, 0, 1, size.y);
if (! fHighlightRanges)
return;
@@ -4406,8 +4395,7 @@ public class TextMergeViewer extends ContentMergeViewer implements IAdaptable {
int shift= tp.getVerticalScrollOffset() + (2-LW);
int maxh= event.y+event.height; // visibleHeight
- //if (fIsMotif)
- shift+= fTopInset;
+ shift += fTopInset;
Point range= new Point(0, 0);

Back to the top