public class SwtDebug extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SwtDebug.ObjectIsNull
Sentinel class for null objects.
|
Constructor and Description |
---|
SwtDebug() |
Modifier and Type | Method and Description |
---|---|
static ImmutableMap<Integer,String> |
allEvents()
Returns a map from the SWT event code to its name, for all SWT events.
|
static void |
dumpEvent(String name,
Event e)
Dumps the given SWT event to System.out.
|
static void |
dumpEvent(String name,
Event e,
StringPrinter to)
Dumps the given SWT event to the given StringPrinter.
|
static void |
dumpEvents(String name,
Widget widget)
Dumps all events from the given widget to System.out.
|
static void |
dumpEvents(String name,
Widget widget,
StringPrinter to)
Dumps all events from the given widget to the given StringPrinter.
|
static void |
dumpEvents(String name,
Widget widget,
StringPrinter to,
Collection<Integer> toSubscribe)
Dumps the given events on the widget to the given StringPrinter.
|
static void |
dumpEvents(String name,
Widget widget,
StringPrinter to,
Integer... toSubscribe)
Dumps the given events on the widget to the given StringPrinter.
|
static void |
dumpEvents(String name,
Widget widget,
StringPrinter to,
Stream<Integer> events)
Dumps the given events on the widget to the given StringPrinter.
|
static String |
eventType(Event event)
Returns the name for the given SWT `event`.
|
static String |
eventType(int type)
Returns the name for the given SWT `eventType`.
|
public static void dumpEvent(String name, @Nullable Event e)
public static void dumpEvent(String name, @Nullable Event e, StringPrinter to)
public static void dumpEvents(String name, Widget widget)
public static void dumpEvents(String name, Widget widget, StringPrinter to)
public static void dumpEvents(String name, Widget widget, StringPrinter to, Integer... toSubscribe)
public static void dumpEvents(String name, Widget widget, StringPrinter to, Collection<Integer> toSubscribe)
public static void dumpEvents(String name, Widget widget, StringPrinter to, Stream<Integer> events)
public static String eventType(int type)
public static ImmutableMap<Integer,String> allEvents()