Package org.eclipse.jface.text
Class DocumentRewriteSessionEvent
- java.lang.Object
-
- org.eclipse.jface.text.DocumentRewriteSessionEvent
-
public class DocumentRewriteSessionEvent extends Object
Description of the state of document rewrite sessions.- Since:
- 3.1
- See Also:
IDocument
,IDocumentExtension4
,IDocumentRewriteSessionListener
-
-
Field Summary
Fields Modifier and Type Field Description Object
fChangeType
The change typeIDocument
fDocument
The changed documentDocumentRewriteSession
fSession
The sessionstatic Object
SESSION_START
static Object
SESSION_STOP
-
Constructor Summary
Constructors Constructor Description DocumentRewriteSessionEvent(IDocument doc, DocumentRewriteSession session, Object changeType)
Creates a new document event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getChangeType()
Returns the change type of this event.IDocument
getDocument()
Returns the changed document.DocumentRewriteSession
getSession()
Returns the rewrite session.
-
-
-
Field Detail
-
SESSION_START
public static final Object SESSION_START
-
SESSION_STOP
public static final Object SESSION_STOP
-
fDocument
public IDocument fDocument
The changed document
-
fSession
public DocumentRewriteSession fSession
The session
-
fChangeType
public Object fChangeType
The change type
-
-
Constructor Detail
-
DocumentRewriteSessionEvent
public DocumentRewriteSessionEvent(IDocument doc, DocumentRewriteSession session, Object changeType)
Creates a new document event.- Parameters:
doc
- the changed documentsession
- the sessionchangeType
- the change type. This is eitherSESSION_START
orSESSION_STOP
.
-
-
Method Detail
-
getDocument
public IDocument getDocument()
Returns the changed document.- Returns:
- the changed document
-
getChangeType
public Object getChangeType()
Returns the change type of this event. This is eitherSESSION_START
orSESSION_STOP
.- Returns:
- the change type of this event
-
getSession
public DocumentRewriteSession getSession()
Returns the rewrite session.- Returns:
- the rewrite session
-
-