public class CompareColorImpl extends Object implements com.google.common.cache.RemovalListener<org.eclipse.swt.graphics.RGB,org.eclipse.swt.graphics.Color>, ICompareColor
ICompareColor.Provider| Modifier and Type | Field and Description | 
|---|---|
| static String | CONFLICTING_CHANGE_COLOR_THEME_KEYConflicting color key in theme | 
| static String | INCOMING_CHANGE_COLOR_THEME_KEYIncoming color key in theme | 
| static String | OUTGOING_CHANGE_COLOR_THEME_KEYOutgoing color key in theme | 
| static String | REQUIRED_DIFF_COLOR_THEME_KEYRequired difference color key in theme | 
| static String | UNMERGEABLE_DIFF_COLOR_THEME_KEYUnmergeable difference color key in theme | 
| Constructor and Description | 
|---|
| CompareColorImpl(org.eclipse.swt.widgets.Display fDisplay,
                boolean leftIsLocal,
                org.eclipse.jface.resource.ColorRegistry colorRegistry)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | dispose()Dispose all  Colorresources. | 
| org.eclipse.swt.graphics.Color | getFillColor(Diff diff,
            boolean isThreeWay,
            boolean isIgnoreAncestor,
            boolean selected)Return the color of the background of the decorator of the given  diff. | 
| org.eclipse.swt.graphics.Color | getRequiredFillColor()Get the color for Required change. | 
| org.eclipse.swt.graphics.Color | getRequiredStrokeColor()Get the color for Required change border items. | 
| org.eclipse.swt.graphics.Color | getStrokeColor(Diff diff,
              boolean isThreeWay,
              boolean isIgnoreAncestor,
              boolean selected)Return the color of the stroke of the decorator of the given  diff. | 
| org.eclipse.swt.graphics.Color | getUnmergeableFillColor()Get the color for Unmergeable difference. | 
| org.eclipse.swt.graphics.Color | getUnmergeableStrokeColor()Get the color for Unmergeable difference border items. | 
| void | onRemoval(com.google.common.cache.RemovalNotification<org.eclipse.swt.graphics.RGB,org.eclipse.swt.graphics.Color> notification) | 
| protected void | updateColors() | 
public static final String INCOMING_CHANGE_COLOR_THEME_KEY
public static final String CONFLICTING_CHANGE_COLOR_THEME_KEY
public static final String OUTGOING_CHANGE_COLOR_THEME_KEY
public static final String REQUIRED_DIFF_COLOR_THEME_KEY
public static final String UNMERGEABLE_DIFF_COLOR_THEME_KEY
public CompareColorImpl(org.eclipse.swt.widgets.Display fDisplay,
                        boolean leftIsLocal,
                        org.eclipse.jface.resource.ColorRegistry colorRegistry)
control - Use for get Display. The colors will be disposed with the control.leftIsLocal - colorRegistry - ColorRegistry where to find all needed color. Those color will be available through the
            constants: (UNMERGEABLE_DIFF_COLOR_THEME_KEY, REQUIRED_DIFF_COLOR_THEME_KEY,
            RESOLVED_CHANGE_COLOR_THEME_KEY, OUTGOING_CHANGE_COLOR_THEME_KEY,
            CONFLICTING_CHANGE_COLOR_THEME_KEY, INCOMING_CHANGE_COLOR_THEME_KEY)public final void onRemoval(com.google.common.cache.RemovalNotification<org.eclipse.swt.graphics.RGB,org.eclipse.swt.graphics.Color> notification)
onRemoval in interface com.google.common.cache.RemovalListener<org.eclipse.swt.graphics.RGB,org.eclipse.swt.graphics.Color>public org.eclipse.swt.graphics.Color getFillColor(Diff diff, boolean isThreeWay, boolean isIgnoreAncestor, boolean selected)
diff.getFillColor in interface ICompareColordiff - the diff to be decorated.isThreeWay - are we comparing three models.isIgnoreAncestor - if the ancestor has to be ignored (i.e. ignore the isThreeWay parameter).selected - if the given diff is selected in the viewer.org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.util.ICompareColor#getFillColor(org.eclipse.emf.compare.Diff,
      boolean, boolean, boolean)public org.eclipse.swt.graphics.Color getStrokeColor(Diff diff, boolean isThreeWay, boolean isIgnoreAncestor, boolean selected)
diff.getStrokeColor in interface ICompareColordiff - the diff to be decorated.isThreeWay - are we comparing three models.isIgnoreAncestor - if the ancestor has to be ignored (i.e. ignore the isThreeWay parameter).selected - if the given diff is selected in the viewer.org.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.util.ICompareColor#getStrokeColor(org.eclipse.emf.compare.Diff,
      boolean, boolean, boolean)protected final void updateColors()
public void dispose()
Color resources.dispose in interface ICompareColororg.eclipse.emf.compare.ide.ui.internal.contentmergeviewer.util.ICompareColor#dispose()public org.eclipse.swt.graphics.Color getRequiredFillColor()
getRequiredFillColor in interface ICompareColorpublic org.eclipse.swt.graphics.Color getUnmergeableFillColor()
getUnmergeableFillColor in interface ICompareColorpublic org.eclipse.swt.graphics.Color getRequiredStrokeColor()
ICompareColor.getRequiredFillColor()getRequiredStrokeColor in interface ICompareColorpublic org.eclipse.swt.graphics.Color getUnmergeableStrokeColor()
ICompareColor.getUnmergeableFillColor()getUnmergeableStrokeColor in interface ICompareColor
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.