diff dwtx/jface/viewers/TreeViewerRow.d @ 104:04b47443bb01

Reworked the collection uses to make use of a wrapper collection that is compatible to the Java Collections. These new wrappers now use the tango.util.containers instead of the tango.util.collections.
author Frank Benoit <benoit@tionex.de>
date Thu, 07 Aug 2008 15:01:33 +0200
parents 7ffeace6c47f
children
line wrap: on
line diff
--- a/dwtx/jface/viewers/TreeViewerRow.d	Sun Aug 03 17:01:51 2008 +0200
+++ b/dwtx/jface/viewers/TreeViewerRow.d	Thu Aug 07 15:01:33 2008 +0200
@@ -18,7 +18,6 @@
 import dwtx.jface.viewers.ViewerRow;
 import dwtx.jface.viewers.TreePath;
 
-import tango.util.collection.LinkSeq;
 
 import dwt.graphics.Color;
 import dwt.graphics.Font;
@@ -31,6 +30,7 @@
 import dwtx.core.runtime.Assert;
 
 import dwt.dwthelper.utils;
+import dwtx.dwtxhelper.Collection;
 
 /**
  * TreeViewerRow is the Tree implementation of ViewerRow.
@@ -334,11 +334,11 @@
 
     public override TreePath getTreePath() {
         TreeItem tItem = item;
-        auto segments = new LinkSeq!(Object);
+        LinkedList segments = new LinkedList();
         while (tItem !is null) {
             Object segment = tItem.getData();
             Assert.isNotNull(segment);
-            segments.prepend(segment);
+            segments.addFirst(segment);
             tItem = tItem.getParentItem();
         }
 
@@ -382,14 +382,14 @@
     public Rectangle getTextBounds(int index) {
         return item.getTextBounds(index);
     }
-    
+
     /* (non-Javadoc)
      * @see dwtx.jface.viewers.ViewerRow#getImageBounds(int)
      */
     public Rectangle getImageBounds(int index) {
         return item.getImageBounds(index);
-    }   
-    
+    }
+
     private bool hasColumns() {
         return this.item.getParent().getColumnCount() !is 0;
     }