@Retention(value=RUNTIME) @Target(value={METHOD,CONSTRUCTOR,TYPE,PARAMETER,FIELD}) public @interface SwtThread
Marks that the given code should only be called from an SWT thread.
When annotated on a method or constructor, this indicates that all of its methods should only be called from the SWT thread.
When annotated on a class, indicates that all of its methods should only be called from the SWT thread
When annotated on a parameter or field, it
must be either an rx.Observable
,
IObservable
, or a
CompletionStage
, and
it indicates that the given code should only be
set and listened to from SWT.
You can use @SwtThread(SwtThread.Kind.THREADSAFE)
to mark exceptions (e.g. mark a class as SwtThread,
but some methods as threadsafe).
Modifier and Type | Optional Element and Description |
---|---|
SwtThread.Kind |
value |
public abstract SwtThread.Kind value