public static class CompareMain.FileCompareContributor extends oracle.javatools.compare.algorithm.text.TextCompareContributor implements EditableContributor
Constructor and Description |
---|
CompareMain.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, setIgnoreWhitespace
addPropertyChangeListener, addPropertyChangeListener, getProperty, getPropertyChangeSupport, removePropertyChangeListener, setLongLabel, setProperty, setShortLabel, setType
public CompareMain.FileCompareContributor(java.io.File file, boolean ignoreWhitespace) throws java.io.IOException
java.io.IOException
public java.io.File getFile()
public TextBuffer getTextBuffer()
oracle.javatools.compare.algorithm.text.TextCompareContributor
getTextBuffer
in class oracle.javatools.compare.algorithm.text.TextCompareContributor
public java.lang.String getShortLabel()
CompareContributor
getShortLabel
in class CompareContributor
public java.lang.String getLongLabel()
CompareContributor
getLongLabel
in class CompareContributor
public java.lang.String getType()
CompareContributor
getType
in class CompareContributor
public boolean isEditable()
oracle.javatools.compare.algorithm.EditableContributor
isEditable
in interface oracle.javatools.compare.algorithm.EditableContributor
public boolean isModified()
oracle.javatools.compare.algorithm.EditableContributor
isModified
in interface oracle.javatools.compare.algorithm.EditableContributor
public void save() throws java.io.IOException
java.io.IOException