public static class CompareMain.FileCompareContributor extends oracle.javatools.compare.algorithm.text.TextCompareContributor implements EditableContributor
| Constructor and Description |
|---|
FileCompareContributor(java.io.File file,
boolean ignoreWhitespace) |
| Modifier and Type | Method and Description |
|---|---|
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()
Get the TextBuffer to display in compare for this contributor.
|
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.
|
void |
save() |
_equal, addChangeListener, addHighLite, addHighLiteListener, addTextBufferListeners, deleteElement, deleteHighLite, equal, fireChangeEvent, getDocumentModel, getElement, getHighLite, getIgnoreWhitespace, getLength, insertElement, isHighLite, newHighLite, removeChangeListener, removeHighLiteListener, replaceElement, reset, selected, setDocumentModel, setIgnoreWhitespaceaddPropertyChangeListener, addPropertyChangeListener, getProperty, getPropertyChangeSupport, removePropertyChangeListener, setLongLabel, setProperty, setShortLabel, setTypepublic FileCompareContributor(java.io.File file,
boolean ignoreWhitespace)
throws java.io.IOException
java.io.IOExceptionpublic java.io.File getFile()
public TextBuffer getTextBuffer()
oracle.javatools.compare.algorithm.text.TextCompareContributorgetTextBuffer in class oracle.javatools.compare.algorithm.text.TextCompareContributorpublic java.lang.String getShortLabel()
CompareContributorgetShortLabel in class CompareContributorpublic java.lang.String getLongLabel()
CompareContributorgetLongLabel in class CompareContributorpublic java.lang.String getType()
CompareContributorgetType in class CompareContributorpublic boolean isEditable()
oracle.javatools.compare.algorithm.EditableContributorisEditable in interface oracle.javatools.compare.algorithm.EditableContributorpublic boolean isModified()
oracle.javatools.compare.algorithm.EditableContributorisModified in interface oracle.javatools.compare.algorithm.EditableContributorpublic void save()
throws java.io.IOException
java.io.IOException