Author: dazarov
Date: 2008-10-21 04:34:11 -0400 (Tue, 21 Oct 2008)
New Revision: 11031
Modified:
branches/jbosstools-3.0.0.Beta1/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesModelImpl.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2925
Modified:
branches/jbosstools-3.0.0.Beta1/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesModelImpl.java
===================================================================
---
branches/jbosstools-3.0.0.Beta1/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesModelImpl.java 2008-10-21
08:29:53 UTC (rev 11030)
+++
branches/jbosstools-3.0.0.Beta1/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesModelImpl.java 2008-10-21
08:34:11 UTC (rev 11031)
@@ -342,13 +342,30 @@
link.dataChanged();
}
}
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated NOT
+ */
+ public void structureChanged(final XModelTreeEvent event) {
+ if(Display.getCurrent() != null){
+ structureChangedInternal(event);
+ }else{
+ Display.getDefault().asyncExec(new Runnable(){
+ public void run(){
+ structureChangedInternal(event);
+ }
+ });
+ }
+ }
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated NOT
*/
- public void structureChanged(XModelTreeEvent event) {
+ public void structureChangedInternal(XModelTreeEvent event) {
if(getData() == null) return;
XModelObject diagramXML = (XModelObject)getData();
XModelObject target = event.getModelObject();