sdedic opened a new pull request, #7903:
URL: https://github.com/apache/netbeans/pull/7903

   This PR improves behaviour of `CloneableEditorSupport` in that it will not 
break additional `DocumentFilter`s which may be attached to the 
AbstractDocument.
   
   If a plugin registers a filter for a document, the `CloneableEditorSupport` 
will erase that filter on document's reload, basically at some unexpected and 
uncontrolled point. This PR changes the impl so it will not *remove* the 
DocumentFilter which would unset the client's DocumentFilter and breaks the 
pass-through chain), but rather **disables**  it.
   
   When the document is listened on again, and it's the same document (!) as 
the existing filter works with, the filter is re-enabled.
   
   If the document reference changes, a new filter is created; the user must 
detect that and restore its own filter as the old Document is gone. This should 
happen mainly if the Document expires and is garbage-collected and is loaded 
again.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to