java.lang.Object
ai.attackframework.tools.burp.ui.text.Doc

public final class Doc extends Object
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 Details

    • onChange

      public static DocumentListener onChange(Runnable action)
      Return a DocumentListener that 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