Top Description Fields Constructors Methods
org.eclipse.swt.internal

public Class SyncDialogUtil

extends Object
Class Inheritance
Imports
java.lang.reflect.*, org.eclipse.swt.internal.gtk.*, org.eclipse.swt.widgets.*

This class is an internal use utilities class introduced during the port from GTK3 to GTK4. This class transforms a non-blocking show dialog call to a blocking call. See bug 567371 for more information and where this is applied.

Field Summary

Modifier and TypeField and Description
pack-priv static Callback
pack-priv static int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
dialogResponseProc(long dialog, int response_id, long user_data)

Callback function for the "response" signal in GtkDialog widgets.

pack-priv static void
pack-priv static void
initializeResponseCallback()

Initializes the response callback and resets the responseID of the dialog to the default value.

public static int

Returns:

the response_id from the dialog presented to the user
run
(Display display, long handle, boolean isNativeDialog)

A blocking call that waits for the handling of the signal before returning

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dialogResponseCallbackback to summary
pack-priv static Callback dialogResponseCallback
responseIDback to summary
pack-priv static int responseID

Constructor Detail

SyncDialogUtilback to summary
public SyncDialogUtil()

Method Detail

dialogResponseProcback to summary
pack-priv static void dialogResponseProc(long dialog, int response_id, long user_data)

Callback function for the "response" signal in GtkDialog widgets. Responsibility of destroying the dialog is the owner of the dialog handle.

Note

Native dialogs are platform dialogs that don't use GtkDialog or GtkWindow.

disposeResponseCallbackback to summary
pack-priv static void disposeResponseCallback()
initializeResponseCallbackback to summary
pack-priv static void initializeResponseCallback()

Initializes the response callback and resets the responseID of the dialog to the default value. This function should be called before connect the dialog to the "response" signal, as this sets up the callback.

runback to summary
public static int run(Display display, long handle, boolean isNativeDialog)

A blocking call that waits for the handling of the signal before returning

Returns:int

the response_id from the dialog presented to the user