Author: DartPeng
Date: 2008-10-21 03:15:20 -0400 (Tue, 21 Oct 2008)
New Revision: 11026
Modified:
branches/jbosstools-3.0.0.Beta1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/gef/model/TreeItemRelationModel.java
Log:
JBIDE-2943
Fix it
Modified:
branches/jbosstools-3.0.0.Beta1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/gef/model/TreeItemRelationModel.java
===================================================================
---
branches/jbosstools-3.0.0.Beta1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/gef/model/TreeItemRelationModel.java 2008-10-21
03:42:46 UTC (rev 11025)
+++
branches/jbosstools-3.0.0.Beta1/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/gef/model/TreeItemRelationModel.java 2008-10-21
07:15:20 UTC (rev 11026)
@@ -40,7 +40,11 @@
int y = Integer.MAX_VALUE;
if (item != null) {
y = item.getBounds().y;
+ // for windows
+ TreeItem parentItem = item.getParentItem();
+ if(parentItem == null) return false;
}
+
return (y == 0);
}
Show replies by date