Author: scabanovich
Date: 2007-07-18 04:30:07 -0400 (Wed, 18 Jul 2007)
New Revision: 2490
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/DataModelValidatorDelegate.java
Log:
Fixed Invalid thread access, that occured because of setting data model property in
SeamFacetInstallDelegete
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/DataModelValidatorDelegate.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/DataModelValidatorDelegate.java 2007-07-18
08:25:02 UTC (rev 2489)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/internal/project/facet/DataModelValidatorDelegate.java 2007-07-18
08:30:07 UTC (rev 2490)
@@ -14,6 +14,7 @@
import java.util.Map;
import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.wst.common.frameworks.datamodel.DataModelEvent;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.frameworks.datamodel.IDataModelListener;
@@ -65,7 +66,13 @@
*
*/
public void propertyChanged(DataModelEvent event) {
- validateUntillError();
+ //When SeamFacetInstallDelegete sets model property,
+ //it can result in Invalid thread access.
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
+ validateUntillError();
+ }
+ });
}
/**
Show replies by date