directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1061351 - /directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditor.java
Date Thu, 20 Jan 2011 15:49:04 GMT
Author: pamarcelot
Date: Thu Jan 20 15:49:04 2011
New Revision: 1061351

URL: http://svn.apache.org/viewvc?rev=1061351&view=rev
Log:
Fixed another bad access to the UI thread ("Invalid thread access" exception).

Modified:
    directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditor.java

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditor.java?rev=1061351&r1=1061350&r2=1061351&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditor.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditor.java
Thu Jan 20 15:49:04 2011
@@ -207,7 +207,13 @@ public class ServerConfigurationEditor e
             setDirty( false );
 
             // Updating the title and tooltip texts
-            setPartName( getEditorInput().getName() );
+            Display.getDefault().syncExec( new Runnable()
+            {
+                public void run()
+                {
+                    setPartName( getEditorInput().getName() );
+                }
+            } );
         }
 
         return success;



Mime
View raw message