Work on invalid thread access error while modifying the user referential
[lgpl/argeo-commons.git] / org.argeo.security.ui.admin / src / org / argeo / security / ui / admin / internal / providers / UserTransactionProvider.java
index c5b9026c74c31109febbce2bf4037a2f0ea8987c..8c8fe7234827afd70c1bc79b305595bad58a6fef 100644 (file)
@@ -10,7 +10,6 @@ import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.argeo.cms.CmsException;
 import org.argeo.security.ui.admin.SecurityAdminPlugin;
-import org.eclipse.swt.SWTException;
 import org.eclipse.ui.AbstractSourceProvider;
 import org.eclipse.ui.ISources;
 
@@ -62,10 +61,9 @@ public class UserTransactionProvider extends AbstractSourceProvider {
                try {
                        fireSourceChanged(ISources.WORKBENCH, TRANSACTION_STATE,
                                        getInternalCurrentState());
-               } catch (SWTException e) {
-                       // FIXME
-                       log.warn("Cannot fire transaction state change event: "
-                                       + e.getMessage());
+               } catch (Exception e) {
+                       log.warn("Cannot fire transaction state change event. Caught exception: "
+                                       + e.getClass().getCanonicalName() + " - " + e.getMessage());
                }
        }