Package org.eclipse.jface.text
Interface IDocumentExtension2
-
- All Known Implementing Classes:
AbstractDocument
,ChildDocument
,Document
,ProjectionDocument
public interface IDocumentExtension2
Extension interface forIDocument
.It adds configuration methods to post notification replaces and document listener notification.
- Since:
- 2.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
acceptPostNotificationReplaces()
Tells the receiver to accept calls toregisterPostNotificationReplace
untilignorePostNotificationReplaces
is called.void
ignorePostNotificationReplaces()
Tells the receiver to ignore calls toregisterPostNotificationReplace
untilacceptPostNotificationReplaces
is called.void
resumeListenerNotification()
Resumes the notification of document listeners which must previously have been stopped by a call tostopListenerNotification
.void
stopListenerNotification()
Can be called prior to areplace
operation.
-
-
-
Method Detail
-
ignorePostNotificationReplaces
void ignorePostNotificationReplaces()
Tells the receiver to ignore calls toregisterPostNotificationReplace
untilacceptPostNotificationReplaces
is called.
-
acceptPostNotificationReplaces
void acceptPostNotificationReplaces()
Tells the receiver to accept calls toregisterPostNotificationReplace
untilignorePostNotificationReplaces
is called.
-
stopListenerNotification
void stopListenerNotification()
Can be called prior to areplace
operation. After thereplace
resumeListenerNotification
must be called. The effect of these calls is that no document listener is notified untilresumeListenerNotification
is called. This allows clients to update structure before any listener is informed about the change.Listener notification can only be stopped for a single
replace
operation. Otherwise, document change notifications will be lost.
-
resumeListenerNotification
void resumeListenerNotification()
Resumes the notification of document listeners which must previously have been stopped by a call tostopListenerNotification
.
-
-