Package org.eclipse.jface.text
Class DocumentRewriteSessionEvent
java.lang.Object
org.eclipse.jface.text.DocumentRewriteSessionEvent
Description of the state of document rewrite sessions.
- Since:
- 3.1
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDocumentRewriteSessionEvent
(IDocument doc, DocumentRewriteSession session, Object changeType) Creates a new document event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the change type of this event.Returns the changed document.Returns the rewrite session.
-
Field Details
-
SESSION_START
-
SESSION_STOP
-
fDocument
The changed document -
fSession
The session -
fChangeType
The change type
-
-
Constructor Details
-
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 Details
-
getDocument
Returns the changed document.- Returns:
- the changed document
-
getChangeType
Returns the change type of this event. This is eitherSESSION_START
orSESSION_STOP
.- Returns:
- the change type of this event
-
getSession
Returns the rewrite session.- Returns:
- the rewrite session
-