/** * Resumes the document listener notification by sending out the remembered * partition changed and document event. * * @since 2.1 */ private void resumeDocumentListenerNotification() { if (fDeferredDocumentEvent != null) { DocumentEvent event= fDeferredDocumentEvent; fDeferredDocumentEvent= null; doFireDocumentChanged(event); } }
/** * Resumes the document listener notification by sending out the remembered * partition changed and document event. * * @since 2.1 */ private void resumeDocumentListenerNotification() { if (fDeferredDocumentEvent != null) { DocumentEvent event= fDeferredDocumentEvent; fDeferredDocumentEvent= null; doFireDocumentChanged(event); } }
/** * Updates the internal document structures and informs all document listeners * if listener notification has been enabled. Otherwise it remembers the event * to be sent to the listeners on resume. * * @param event the document event to be sent out */ protected void fireDocumentChanged(DocumentEvent event) { updateDocumentStructures(event); if (fStoppedListenerNotification == 0) doFireDocumentChanged(event); else fDeferredDocumentEvent= event; }
/** * Updates the internal document structures and informs all document listeners * if listener notification has been enabled. Otherwise it remembers the event * to be sent to the listeners on resume. * * @param event the document event to be sent out */ protected void fireDocumentChanged(DocumentEvent event) { updateDocumentStructures(event); if (fStoppedListenerNotification == 0) doFireDocumentChanged(event); else fDeferredDocumentEvent= event; }
/** * Notifies all listeners about the given document change. Uses a robust * iterator. * <p> * Executes all registered post notification replace operation. * * @param event the event to be sent out. */ protected void doFireDocumentChanged(DocumentEvent event) { boolean changed= fDocumentPartitioningChangedEvent != null && !fDocumentPartitioningChangedEvent.isEmpty(); IRegion change= changed ? fDocumentPartitioningChangedEvent.getCoverage() : null; doFireDocumentChanged(event, changed, change); }
/** * Notifies all listeners about the given document change. Uses a robust * iterator. * <p> * Executes all registered post notification replace operation. * * @param event the event to be sent out. */ protected void doFireDocumentChanged(DocumentEvent event) { boolean changed= fDocumentPartitioningChangedEvent != null && !fDocumentPartitioningChangedEvent.isEmpty(); IRegion change= changed ? fDocumentPartitioningChangedEvent.getCoverage() : null; doFireDocumentChanged(event, changed, change); }