Class Doc
java.lang.Object
ai.attackframework.tools.burp.ui.text.Doc
Small adapter to reduce boilerplate when wiring document change events to a
Runnable.
All callbacks are forwarded as the same action; this is appropriate for UI cases where insert/remove/changed should share identical behavior. Caller should ensure the listener runs on the EDT when used with Swing components.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentListenerReturn aDocumentListenerthat invokes the given action on any document change.
-
Method Details
-
onChange
Return aDocumentListenerthat invokes the given action on any document change. Caller should ensure this runs on the EDT in Swing contexts.- Parameters:
action- action to invoke- Returns:
- a listener delegating all events to
action
-