Extension SDK 10.1.3.36.73

oracle.jdeveloper.compare
Class TextNodeContributor

java.lang.Object
  extended byoracle.javatools.compare.CompareContributor
      extended byoracle.javatools.compare.algorithm.sequence.SequenceCompareContributor
          extended byoracle.javatools.compare.algorithm.text.TextCompareContributor
              extended byoracle.jdeveloper.compare.TextNodeContributor
All Implemented Interfaces:
EditableContributor, PatchCompareContributor
Direct Known Subclasses:
TextMergeNodeContributor

public class TextNodeContributor
extends oracle.javatools.compare.algorithm.text.TextCompareContributor
implements EditableContributor, PatchCompareContributor

A TextCompareContributor based on the current contents of an editor buffer.

Since:
10.0.3

Field Summary
 
Fields inherited from interface oracle.javatools.compare.EditableContributor
PROPERTY_EDITABLE, PROPERTY_MODIFIED
 
Constructor Summary
TextNodeContributor(TextNode node)
           
 
Method Summary
 java.lang.String getLongLabel()
          Get a long label for this comparable element.
 PatchCompareDescriptor getPatchDescriptor()
          Gets the patch descriptor object for the compare contributor, used in the creation of a patch.
 java.lang.String getShortLabel()
          Get a short label for this comparable element.
 TextBuffer getTextBuffer()
          Gets the text buffer for the comparison and patch contribution.
 java.lang.String getType()
          Get the extension of the file this contributor represents.
 boolean isEditable()
          Get whether this contributor is currently editable.
 boolean isModified()
          Get whether this contributor is currently modified, i.e. has unsaved changes pending.
 
Methods inherited from class oracle.javatools.compare.algorithm.text.TextCompareContributor
addChangeListener, addTextBufferListeners, equal, getIgnoreWhitespace, getLength, removeChangeListener, setIgnoreWhitespace
 
Methods inherited from class oracle.javatools.compare.CompareContributor
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.javatools.compare.EditableContributor
addChangeListener, removeChangeListener
 
Methods inherited from interface oracle.jdeveloper.compare.PatchCompareContributor
getIgnoreWhitespace
 

Constructor Detail

TextNodeContributor

public TextNodeContributor(TextNode node)
Method Detail

getTextBuffer

public TextBuffer getTextBuffer()
Description copied from interface: PatchCompareContributor
Gets the text buffer for the comparison and patch contribution.

Specified by:
getTextBuffer in interface PatchCompareContributor

getType

public java.lang.String getType()
Description copied from class: CompareContributor
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".

getShortLabel

public java.lang.String getShortLabel()
Description copied from class: CompareContributor
Get a short label for this comparable element.

Overrides:
getShortLabel in class CompareContributor
Returns:
a short label for this comparable element.

getLongLabel

public java.lang.String getLongLabel()
Description copied from class: CompareContributor
Get a long label for this comparable element.

Overrides:
getLongLabel in class CompareContributor
Returns:
a long label for this comparable element.

isEditable

public boolean isEditable()
Description copied from interface: EditableContributor
Get whether this contributor is currently editable. This is to support contributors that are normally editable, but may be read-only under certain states (e.g. a checked in file.).

Specified by:
isEditable in interface EditableContributor
Returns:
true if this contributor can currently be edited.

isModified

public boolean isModified()
Description copied from interface: EditableContributor
Get whether this contributor is currently modified, i.e. has unsaved changes pending.

Specified by:
isModified in interface EditableContributor
Returns:
true if this contributor has unsaved changes.

getPatchDescriptor

public PatchCompareDescriptor getPatchDescriptor()
Description copied from interface: PatchCompareContributor
Gets the patch descriptor object for the compare contributor, used in the creation of a patch.

Specified by:
getPatchDescriptor in interface PatchCompareContributor
Returns:
the patch descriptor object.

Extension SDK 10.1.3.36.73

 

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