站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

RevisionEditorSupport.Env (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.versioning
Class RevisionEditorSupport.Env

java.lang.Object
  extended byorg.netbeans.modules.vcscore.versioning.RevisionEditorSupport.Env
All Implemented Interfaces:
CloneableEditorSupport.Env, CloneableOpenSupport.Env, Serializable
Enclosing class:
RevisionEditorSupport

public static class RevisionEditorSupport.Env
extends Object
implements CloneableOpenSupport.Env, CloneableEditorSupport.Env, Serializable

Environment that connects the data object and the CloneableEditorSupport.

See Also:
Serialized Form

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

RevisionEditorSupport.Env

public RevisionEditorSupport.Env(RevisionList list,
                                 RevisionItem revisionItem)
Constructor.

Method Detail

inputStream

public InputStream inputStream()
                        throws IOException
Obtains the input stream.

Specified by:
inputStream in interface CloneableEditorSupport.Env
Throws:
IOException - if an I/O error occures

outputStream

public OutputStream outputStream()
                          throws IOException
Obtains the output stream.

Specified by:
outputStream in interface CloneableEditorSupport.Env
Throws:
IOException - if an I/O error occures

getMimeType

public String getMimeType()
Mime type of the document.

Specified by:
getMimeType in interface CloneableEditorSupport.Env
Returns:
the mime type to use for the document

markModified

public void markModified()
                  throws IOException
First of all tries to lock the primary file and if it succeeds it marks the data object modified.

Specified by:
markModified in interface CloneableOpenSupport.Env
Throws:
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 changes

unmarkModified

public void unmarkModified()
Reverse method that can be called to make the environment unmodified.

Specified by:
unmarkModified in interface CloneableOpenSupport.Env

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
Called from the EnvListener

Specified by:
removePropertyChangeListener in interface CloneableOpenSupport.Env

isModified

public boolean isModified()
Specified by:
isModified in interface CloneableOpenSupport.Env

getTime

public Date getTime()
Specified by:
getTime in interface CloneableEditorSupport.Env

removeVetoableChangeListener

public void removeVetoableChangeListener(VetoableChangeListener vetoableChangeListener)
Specified by:
removeVetoableChangeListener in interface CloneableOpenSupport.Env

isValid

public boolean isValid()
Specified by:
isValid in interface CloneableOpenSupport.Env

addVetoableChangeListener

public void addVetoableChangeListener(VetoableChangeListener vetoableChangeListener)
Specified by:
addVetoableChangeListener in interface CloneableOpenSupport.Env

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
Specified by:
addPropertyChangeListener in interface CloneableOpenSupport.Env

findCloneableOpenSupport

public CloneableOpenSupport findCloneableOpenSupport()
Specified by:
findCloneableOpenSupport in interface CloneableOpenSupport.Env

writeReplace

protected Object writeReplace()
                       throws ObjectStreamException
Disable serialization.

Throws:
ObjectStreamException

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.