|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.netbeans.modules.vcscore.versioning.RevisionEditorSupport.Env
Environment that connects the data object and the CloneableEditorSupport.
| Field Summary |
| Fields inherited from interface org.openide.windows.CloneableOpenSupport.Env |
PROP_MODIFIED, PROP_VALID |
| Fields inherited from interface org.openide.text.CloneableEditorSupport.Env |
PROP_TIME |
| Constructor Summary | |
RevisionEditorSupport.Env(RevisionList list,
RevisionItem revisionItem)
Constructor. |
|
| Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
|
void |
addVetoableChangeListener(VetoableChangeListener vetoableChangeListener)
|
CloneableOpenSupport |
findCloneableOpenSupport()
|
String |
getMimeType()
Mime type of the document. |
Date |
getTime()
|
InputStream |
inputStream()
Obtains the input stream. |
boolean |
isModified()
|
boolean |
isValid()
|
void |
markModified()
First of all tries to lock the primary file and if it succeeds it marks the data object modified. |
OutputStream |
outputStream()
Obtains the output stream. |
void |
removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
Called from the EnvListener |
void |
removeVetoableChangeListener(VetoableChangeListener vetoableChangeListener)
|
void |
unmarkModified()
Reverse method that can be called to make the environment unmodified. |
protected Object |
writeReplace()
Disable serialization. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RevisionEditorSupport.Env(RevisionList list, RevisionItem revisionItem)
| Method Detail |
public InputStream inputStream() throws IOException
inputStream in interface CloneableEditorSupport.EnvIOException - if an I/O error occurespublic OutputStream outputStream() throws IOException
outputStream in interface CloneableEditorSupport.EnvIOException - if an I/O error occurespublic String getMimeType()
getMimeType in interface CloneableEditorSupport.Env
public void markModified()
throws IOException
markModified in interface CloneableOpenSupport.EnvIOException - if the environment cannot be marked modified
(for example when the file is readonly), when such exception
is the support should discard all previous changespublic void unmarkModified()
unmarkModified in interface CloneableOpenSupport.Envpublic void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
removePropertyChangeListener in interface CloneableOpenSupport.Envpublic boolean isModified()
isModified in interface CloneableOpenSupport.Envpublic Date getTime()
getTime in interface CloneableEditorSupport.Envpublic void removeVetoableChangeListener(VetoableChangeListener vetoableChangeListener)
removeVetoableChangeListener in interface CloneableOpenSupport.Envpublic boolean isValid()
isValid in interface CloneableOpenSupport.Envpublic void addVetoableChangeListener(VetoableChangeListener vetoableChangeListener)
addVetoableChangeListener in interface CloneableOpenSupport.Envpublic void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
addPropertyChangeListener in interface CloneableOpenSupport.Envpublic CloneableOpenSupport findCloneableOpenSupport()
findCloneableOpenSupport in interface CloneableOpenSupport.Envprotected Object writeReplace() throws ObjectStreamException
ObjectStreamException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||