mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Updating FlashinPreferences.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12083 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
holger.bergunde
parent
fd3f1b7ede
commit
faf2ec32de
@ -34,9 +34,11 @@ public class FlashingPreference implements Preference {
|
|||||||
|
|
||||||
public FlashingPreference() {
|
public FlashingPreference() {
|
||||||
preferences = new FlashingPreferences();
|
preferences = new FlashingPreferences();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (EventQueue.isDispatchThread()) {
|
if (EventQueue.isDispatchThread()) {
|
||||||
dialog = new FlashingPreferenceDialog();
|
dialog = new FlashingPreferenceDialog();
|
||||||
|
System.out.println("Loading FlashingPreferences. Currently in DispatchThread.");
|
||||||
} else {
|
} else {
|
||||||
EventQueue.invokeAndWait(new Runnable()
|
EventQueue.invokeAndWait(new Runnable()
|
||||||
{
|
{
|
||||||
@ -44,6 +46,7 @@ public class FlashingPreference implements Preference {
|
|||||||
public void run()
|
public void run()
|
||||||
{
|
{
|
||||||
dialog = new FlashingPreferenceDialog();
|
dialog = new FlashingPreferenceDialog();
|
||||||
|
System.out.println("Loading FlashingPreferences. I'am invoked in EventQueue.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user