Author: scabanovich
Date: 2009-11-23 11:34:27 -0500 (Mon, 23 Nov 2009)
New Revision: 18786
Modified:
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/ESBResourceTree.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5191
Modified:
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/ESBResourceTree.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/ESBResourceTree.java 2009-11-23
16:09:35 UTC (rev 18785)
+++
trunk/esb/plugins/org.jboss.tools.esb.core/src/org/jboss/tools/esb/core/model/ESBResourceTree.java 2009-11-23
16:34:27 UTC (rev 18786)
@@ -3,15 +3,26 @@
import java.util.ArrayList;
import java.util.List;
+import org.jboss.tools.common.model.XModel;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.XModelObjectConstants;
import org.jboss.tools.common.model.filesystems.FileSystemsHelper;
import org.jboss.tools.common.model.filesystems.XFileObject;
+import org.jboss.tools.common.model.filesystems.impl.FileSystemsImpl;
import org.jboss.tools.common.model.impl.trees.FileSystemResourceTree;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
public class ESBResourceTree extends FileSystemResourceTree {
+ public void setModel(XModel model) {
+ super.setModel(model);
+ if(EclipseResourceUtil.isProjectFragment(model)) {
+ FileSystemsImpl fs = (FileSystemsImpl)FileSystemsHelper.getFileSystems(model);
+ if(fs != null) fs.forceUpdate();
+ }
+ }
+
public XModelObject[] getChildren(XModelObject object) {
if(object == getRoot()) {
XModelObject[] os = object.getChildren();