Author: adietish
Date: 2011-03-11 11:35:31 -0500 (Fri, 11 Mar 2011)
New Revision: 29707
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/CVPropertySheetPage.java
Log:
[JBIDE-7523] listening to changes in DeltaCloud and refreshing properties view
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/CVPropertySheetPage.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/CVPropertySheetPage.java 2011-03-11
11:57:25 UTC (rev 29706)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/cloud/property/CVPropertySheetPage.java 2011-03-11
16:35:31 UTC (rev 29707)
@@ -14,6 +14,7 @@
import java.beans.PropertyChangeListener;
import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.views.properties.PropertySheetPage;
import org.jboss.tools.deltacloud.core.DeltaCloud;
@@ -31,7 +32,13 @@
@Override
public void propertyChange(PropertyChangeEvent evt) {
- refresh();
+ Display.getDefault().syncExec(new Runnable() {
+
+ @Override
+ public void run() {
+ refresh();
+ }
+ });
}
};