|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.Env
IOException
- if an I/O error occurespublic OutputStream outputStream() throws IOException
outputStream
in interface CloneableEditorSupport.Env
IOException
- if an I/O error occurespublic String getMimeType()
getMimeType
in interface CloneableEditorSupport.Env
public void markModified() throws IOException
markModified
in interface CloneableOpenSupport.Env
IOException
- 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.Env
public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
removePropertyChangeListener
in interface CloneableOpenSupport.Env
public boolean isModified()
isModified
in interface CloneableOpenSupport.Env
public Date getTime()
getTime
in interface CloneableEditorSupport.Env
public void removeVetoableChangeListener(VetoableChangeListener vetoableChangeListener)
removeVetoableChangeListener
in interface CloneableOpenSupport.Env
public boolean isValid()
isValid
in interface CloneableOpenSupport.Env
public void addVetoableChangeListener(VetoableChangeListener vetoableChangeListener)
addVetoableChangeListener
in interface CloneableOpenSupport.Env
public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
addPropertyChangeListener
in interface CloneableOpenSupport.Env
public CloneableOpenSupport findCloneableOpenSupport()
findCloneableOpenSupport
in interface CloneableOpenSupport.Env
protected Object writeReplace() throws ObjectStreamException
ObjectStreamException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |