Class UnifiedDiff.Builder
java.lang.Object
org.eclipse.compare.unifieddiff.UnifiedDiff.Builder
- Enclosing class:
UnifiedDiff
-
Method Summary
Modifier and TypeMethodDescriptionadditionalActions(List<Action> actions) foldUnchanged(int contextLines) Collapses unchanged regions between diffs, keeping the given number of context lines (at least one) around each change.ignoreWhiteSpace(boolean value) open()toolbarActionImage(UnifiedDiff.ToolbarAction action, ImageDescriptor image) Overrides the image for an action in a unified diff toolbar.toolbarActionText(UnifiedDiff.ToolbarAction action, String text) Overrides the text, including the tooltip text, for an action in a unified diff toolbar.
-
Method Details
-
additionalActions
-
ignoreWhitespaceContributorFactory
public UnifiedDiff.Builder ignoreWhitespaceContributorFactory(UnifiedDiff.IgnoreWhitespaceContributorFactory factory) -
tokenComparatorFactory
-
ignoreWhiteSpace
-
toolbarActionText
Overrides the text, including the tooltip text, for an action in a unified diff toolbar.- Parameters:
action- the action whose text is overriddentext- the replacement text- Returns:
- this builder
-
toolbarActionImage
public UnifiedDiff.Builder toolbarActionImage(UnifiedDiff.ToolbarAction action, ImageDescriptor image) Overrides the image for an action in a unified diff toolbar. Passingnullremoves the action's default image and displays its text instead.- Parameters:
action- the action whose image is overriddenimage- the replacement image, ornullto show text- Returns:
- this builder
-
foldUnchanged
Collapses unchanged regions between diffs, keeping the given number of context lines (at least one) around each change. A negative value disables folding.The folding of the editor is reused, so this has no effect in an editor without folding support, such as the default text editor, or in an editor whose folding the user turned off.
-
open
-