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

E13403-07

oracle.javatools.compare
Class CompareMain.FileCompareContributor

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.javatools.compare.CompareMain.FileCompareContributor
All Implemented Interfaces:
oracle.javatools.compare.algorithm.EditableContributor
Enclosing class:
CompareMain

public static class CompareMain.FileCompareContributor
extends oracle.javatools.compare.algorithm.text.TextCompareContributor
implements EditableContributor


Field Summary
 
Fields inherited from interface oracle.javatools.compare.algorithm.EditableContributor
PROPERTY_EDITABLE, PROPERTY_MODIFIED
 
Constructor Summary
CompareMain.FileCompareContributor(java.io.File file, boolean ignoreWhitespace)
           
 
Method Summary
 java.io.File getFile()
           
 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.
 boolean isEditable()
           
 boolean isModified()
           
 void save()
           
 
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
 
Methods inherited from interface oracle.javatools.compare.algorithm.EditableContributor
addChangeListener, removeChangeListener
 

Constructor Detail

CompareMain.FileCompareContributor

public CompareMain.FileCompareContributor(java.io.File file,
                                          boolean ignoreWhitespace)
                                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getFile

public java.io.File getFile()

getTextBuffer

public TextBuffer getTextBuffer()
Specified by:
getTextBuffer in class oracle.javatools.compare.algorithm.text.TextCompareContributor

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.

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".

isEditable

public boolean isEditable()
Specified by:
isEditable in interface oracle.javatools.compare.algorithm.EditableContributor

isModified

public boolean isModified()
Specified by:
isModified in interface oracle.javatools.compare.algorithm.EditableContributor

save

public void save()
          throws java.io.IOException
Throws:
java.io.IOException

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

E13403-07

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