Package com.diffplug.common.swt
Class SwtDebug
java.lang.Object
com.diffplug.common.swt.SwtDebug
Helpful utilities for debugging SWT.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSentinel class for null objects. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableMap<Integer,String> Returns a map from the SWT event code to its name, for all SWT events.static voiddumpEvent(String name, DropTargetEvent e) Dumps the given SWT event to System.out.static voiddumpEvent(String name, DropTargetEvent e, StringPrinter to) Dumps the given SWT event to the given StringPrinter.static voidDumps the given SWT event to System.out.static voiddumpEvent(String name, Event e, StringPrinter to) Dumps the given SWT event to the given StringPrinter.static voiddumpEvents(String name, Widget widget) Dumps all events from the given widget to System.out.static voiddumpEvents(String name, Widget widget, StringPrinter to) Dumps all events from the given widget to the given StringPrinter.static voiddumpEvents(String name, Widget widget, StringPrinter to, Integer... toSubscribe) Dumps the given events on the widget to the given StringPrinter.static voiddumpEvents(String name, Widget widget, StringPrinter to, Collection<Integer> toSubscribe) Dumps the given events on the widget to the given StringPrinter.static voiddumpEvents(String name, Widget widget, StringPrinter to, Stream<Integer> events) Dumps the given events on the widget to the given StringPrinter.static DropTargetListenerA DropTargetListener which dumps events.static StringeventType(int type) Returns the name for the given SWT `eventType`.static StringReturns the name for the given SWT `event`.
-
Constructor Details
-
SwtDebug
public SwtDebug()
-
-
Method Details
-
dumpEvent
Dumps the given SWT event to System.out. -
dumpEvent
Dumps the given SWT event to the given StringPrinter. -
dumpEventsDropListener
A DropTargetListener which dumps events. -
dumpEvent
Dumps the given SWT event to System.out. -
dumpEvent
Dumps the given SWT event to the given StringPrinter. -
dumpEvents
Dumps all events from the given widget to System.out. -
dumpEvents
Dumps all events from the given widget to the given StringPrinter. -
dumpEvents
Dumps the given events on the widget to the given StringPrinter. -
dumpEvents
public static void dumpEvents(String name, Widget widget, StringPrinter to, Collection<Integer> toSubscribe) Dumps the given events on the widget to the given StringPrinter. -
dumpEvents
Dumps the given events on the widget to the given StringPrinter. -
eventType
Returns the name for the given SWT `event`. -
eventType
Returns the name for the given SWT `eventType`. -
allEvents
Returns a map from the SWT event code to its name, for all SWT events.
-