Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.jdeveloper.merge
Class TextMergeContributor

java.lang.Object
  extended by oracle.javatools.compare.CompareContributor
      extended by oracle.javatools.compare.algorithm.sequence.SequenceCompareContributor
          extended by oracle.javatools.compare.algorithm.text.TextCompareContributor
              extended by 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

Constructor Summary
TextMergeContributor(TextBuffer textBuffer, java.lang.String type, java.lang.String title)
          Constructor.
 
Method Summary
 java.lang.String getLongLabel()
          Get a long label for this comparable element.
 java.lang.String getShortLabel()
          Get a short label for this comparable element.
 TextBuffer getTextBuffer()
          
 java.lang.String getType()
          Get the extension of the file this contributor represents.
 
Methods inherited from class oracle.javatools.compare.algorithm.text.TextCompareContributor
addChangeListener, addTextBufferListeners, deleteElement, equal, fireChangeEvent, getDocumentModel, getElement, getIgnoreWhitespace, getLength, insertElement, removeChangeListener, replaceElement, setDocumentModel, setIgnoreWhitespace
 
Methods inherited from class oracle.javatools.compare.CompareContributor
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, setLongLabel, setShortLabel, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.