Uses of Class
org.eclipse.compare.unifieddiff.UnifiedDiffMode
Packages that use UnifiedDiffMode
-
Uses of UnifiedDiffMode in org.eclipse.compare.unifieddiff
Fields in org.eclipse.compare.unifieddiff declared as UnifiedDiffModeModifier and TypeFieldDescriptionstatic final UnifiedDiffModeUnifiedDiffMode.OVERLAY_MODEThe source in the editor is not modified.static final UnifiedDiffModeUnifiedDiffMode.OVERLAY_READ_ONLY_MODEThe source in the editor is not modified.static final UnifiedDiffModeUnifiedDiffMode.REPLACE_MODEDiffs are directly applied in the editor.static final UnifiedDiffModeUnifiedDiffMode.REVERT_MODEThe current source in the editor represents the latest/newest version, which is compared against an older version.Methods in org.eclipse.compare.unifieddiff with parameters of type UnifiedDiffModeModifier and TypeMethodDescriptionstatic UnifiedDiff.BuilderUnifiedDiff.create(ITextEditor editor, String source, UnifiedDiffMode mode) Shows the unified diff in the given editor. -
Uses of UnifiedDiffMode in org.eclipse.compare.unifieddiff.internal
Fields in org.eclipse.compare.unifieddiff.internal declared as UnifiedDiffModeMethods in org.eclipse.compare.unifieddiff.internal with parameters of type UnifiedDiffModeModifier and TypeMethodDescriptionstatic voidUnifiedDiffManager.foldUnchangedRegions(ProjectionViewer viewer, IDocument document, List<UnifiedDiffManager.UnifiedDiff> unifiedDiffs, UnifiedDiffMode mode, int contextLines) Collapses the unchanged regions between the displayed diffs, keepingcontextLinesvisible next to each change.static IStatusUnifiedDiffManager.open(ITextViewer viewer, IDocument leftDocument, IAnnotationModel model, IFile file, String source, UnifiedDiffMode mode, List<Action> additionalActions, UnifiedDiff.TokenComparatorFactory tokenComparatorFactory, UnifiedDiff.IgnoreWhitespaceContributorFactory ignoreWhitespaceContributorFactory, boolean ignoreWhiteSpace, int foldContextLines) Shows the diff between the document of the viewer and the source in the viewer, replacing a diff shown there before.static IStatusUnifiedDiffManager.open(ITextViewer viewer, IDocument leftDocument, IAnnotationModel model, IFile file, String source, UnifiedDiffMode mode, List<Action> additionalActions, UnifiedDiff.TokenComparatorFactory tokenComparatorFactory, UnifiedDiff.IgnoreWhitespaceContributorFactory ignoreWhitespaceContributorFactory, boolean ignoreWhiteSpace, int foldContextLines, ToolbarActionPresentations toolbarActionPresentations) static IStatusUnifiedDiffManager.open(ITextEditor editor, String source, UnifiedDiffMode mode, List<Action> additionalActions, UnifiedDiff.TokenComparatorFactory tokenComparatorFactory, UnifiedDiff.IgnoreWhitespaceContributorFactory ignoreWhitespaceContributorFactory, boolean ignoreWhiteSpace, int foldContextLines) static IStatusUnifiedDiffManager.open(ITextEditor editor, String source, UnifiedDiffMode mode, List<Action> additionalActions, UnifiedDiff.TokenComparatorFactory tokenComparatorFactory, UnifiedDiff.IgnoreWhitespaceContributorFactory ignoreWhitespaceContributorFactory, boolean ignoreWhiteSpace, int foldContextLines, ToolbarActionPresentations toolbarActionPresentations) UnifiedDiffManager.unchangedFoldRegions(IDocument document, List<UnifiedDiffManager.UnifiedDiff> unifiedDiffs, UnifiedDiffMode mode, int contextLines) Returns the regions to collapse: the unchanged gaps before, between and after the given diffs, each shortened bycontextLinestowards a neighboring change.Constructors in org.eclipse.compare.unifieddiff.internal with parameters of type UnifiedDiffModeModifierConstructorDescriptionUnifiedDiff(IDocument left, int leftStart, int leftEnd, String leftDiffSource, IDocument right, int rightStart, int rightEnd, String rightDiffSource, List<UnifiedDiffManager.UnifiedDiff> container, UnifiedDiffMode mode)