Class UnifiedDiffManager
java.lang.Object
org.eclipse.compare.unifieddiff.internal.UnifiedDiffManager
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IAnnotationModelannotationModelOf(ITextEditor editor) Returns the annotation model the diffs of the given editor live in, ornullwhen it has none.static voidstatic List<UnifiedDiffManager.UnifiedDiff> get(ITextViewer viewer) static booleanstatic booleanstatic booleanstatic IStatusopen(ITextEditor editor, String source, UnifiedDiffMode mode, List<Action> additionalActions, UnifiedDiff.TokenComparatorFactory tokenComparatorFactory, UnifiedDiff.IgnoreWhitespaceContributorFactory ignoreWhitespaceContributorFactory, boolean ignoreWhiteSpace) static voidput(ITextViewer viewer, List<UnifiedDiffManager.UnifiedDiff> diffs)
-
Field Details
-
CANCELED_BY_USER
The user canceled the computation. The text editor is already open, so the caller must not fall back to the classic compare editor. Compared by identity, because a status code would clash withStatus.CANCEL_STATUS, which this class returns when it cannot show a unified diff at all.
-
-
Constructor Details
-
UnifiedDiffManager
public UnifiedDiffManager()
-
-
Method Details
-
put
-
get
-
annotationModelOf
Returns the annotation model the diffs of the given editor live in, ornullwhen it has none. The document provider of an editor on something other than a workspace file, a revision for example, supplies no model, so the one installed on the viewer is used. -
open
public static IStatus open(ITextEditor editor, String source, UnifiedDiffMode mode, List<Action> additionalActions, UnifiedDiff.TokenComparatorFactory tokenComparatorFactory, UnifiedDiff.IgnoreWhitespaceContributorFactory ignoreWhitespaceContributorFactory, boolean ignoreWhiteSpace) -
error
-
isOverlay
-
isRevert
-
isReadOnly
-