SUMMARY:
java.lang.Object
oracle.javatools.compare.CompareContributor
oracle.javatools.compare.algorithm.sequence.SequenceCompareContributor
oracle.javatools.compare.algorithm.text.TextCompareContributor
oracle.jdeveloper.merge.TextMergeContributor
public class TextMergeContributor
- extends oracle.javatools.compare.algorithm.text.TextCompareContributor
Textual merge compare contributor class, based around a TextBuffer
.
- Since:
- 10.1.3.0.3
TextMergeContributor
public TextMergeContributor(TextBuffer textBuffer,
java.lang.String type,
java.lang.String title)
- Constructor.
- Parameters:
textBuffer
- the text buffer on which the contributor is based.type
- the type (a file suffix, used for view syntax highlighting).title
- the user-visible title of the contributor.
getTextBuffer
public TextBuffer getTextBuffer()
-
- Specified by:
getTextBuffer
in class oracle.javatools.compare.algorithm.text.TextCompareContributor
- Returns:
getType
public java.lang.String getType()
- Get the extension of the file this contributor represents. This is
currently only used to determine the syntax highlighting style for
the text compare viewer, but it will almost certainly be used for
other things in the future.
By default, this method returns an empty string.
- Overrides:
getType
in class CompareContributor
- Returns:
- an extension for this file without any period prefix. E.g. "java".
getLongLabel
public java.lang.String getLongLabel()
- Get a long label for this comparable element.
- Overrides:
getLongLabel
in class CompareContributor
- Returns:
- a long label for this comparable element.
getShortLabel
public java.lang.String getShortLabel()
- Get a short label for this comparable element.
- Overrides:
getShortLabel
in class CompareContributor
- Returns:
- a short label for this comparable element.