Author: dazarov
Date: 2008-10-20 09:06:59 -0400 (Mon, 20 Oct 2008)
New Revision: 10983
Modified:
trunk/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:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesModelImpl.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesModelImpl.java 2008-10-20
12:47:39 UTC (rev 10982)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/ecore/pages/impl/PagesModelImpl.java 2008-10-20
13:06:59 UTC (rev 10983)
@@ -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();