oracle.javatools.compare
Class CompareMain.FileCompareContributor
java.lang.Object
oracle.javatools.compare.CompareContributor
oracle.javatools.compare.algorithm.sequence.SequenceCompareContributor
oracle.javatools.compare.algorithm.text.TextCompareContributor
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
Fields inherited from interface oracle.javatools.compare.algorithm.EditableContributor |
PROPERTY_EDITABLE, PROPERTY_MODIFIED |
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 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 |
CompareMain.FileCompareContributor
public CompareMain.FileCompareContributor(java.io.File file,
boolean ignoreWhitespace)
throws java.io.IOException
- Throws:
java.io.IOException
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
Copyright © 1997, 2013, Oracle. All rights reserved.