Interface ICompareColor
- All Known Implementing Classes:
CompareColorImpl,EMFCompareColor
public interface ICompareColor
Implementation of this interface will return color of decorator of
difference.- Since:
- 4.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA provider of ICompareColor. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose allColorresources.org.eclipse.swt.graphics.ColorgetFillColor(Diff diff, boolean isThreeWay, boolean isIgnoreAncestor, boolean selected) Return the color of the background of the decorator of the givendiff.org.eclipse.swt.graphics.ColorGet the color for Required change.org.eclipse.swt.graphics.ColorGet the color for Required change border items.org.eclipse.swt.graphics.ColorgetStrokeColor(Diff diff, boolean isThreeWay, boolean isIgnoreAncestor, boolean selected) Return the color of the stroke of the decorator of the givendiff.org.eclipse.swt.graphics.ColorGet the color for Unmergeable difference.org.eclipse.swt.graphics.ColorGet the color for Unmergeable difference border items.
-
Method Details
-
getFillColor
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 givendiff.- Parameters:
diff- 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 givendiffis selected in the viewer.- Returns:
- the background color.
-
getStrokeColor
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 givendiff.- Parameters:
diff- 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 givendiffis selected in the viewer.- Returns:
- the background color.
-
getRequiredFillColor
org.eclipse.swt.graphics.Color getRequiredFillColor()Get the color for Required change.- Returns:
-
getRequiredStrokeColor
org.eclipse.swt.graphics.Color getRequiredStrokeColor()Get the color for Required change border items. This color is computed fromgetRequiredFillColor()- Returns:
-
getUnmergeableFillColor
org.eclipse.swt.graphics.Color getUnmergeableFillColor()Get the color for Unmergeable difference.- Returns:
-
getUnmergeableStrokeColor
org.eclipse.swt.graphics.Color getUnmergeableStrokeColor()Get the color for Unmergeable difference border items. This color is computed fromgetUnmergeableFillColor()- Returns:
-
dispose
void dispose()Dispose allColorresources.
-