Mercurial > projects > dwt2
comparison org.eclipse.jface/src/org/eclipse/jface/viewers/deferred/BackgroundContentProvider.d @ 19:52184e4b815c
no more direct tango.core.Thread. Rename JThread to java.lang.Thread.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Mar 2009 10:55:25 +0100 |
parents | bc29606a740c |
children |
comparison
equal
deleted
inserted
replaced
18:735224fcc45f | 19:52184e4b815c |
---|---|
28 import org.eclipse.jface.viewers.AcceptAllFilter; | 28 import org.eclipse.jface.viewers.AcceptAllFilter; |
29 import org.eclipse.jface.viewers.IFilter; | 29 import org.eclipse.jface.viewers.IFilter; |
30 | 30 |
31 import java.lang.all; | 31 import java.lang.all; |
32 import java.util.Set; | 32 import java.util.Set; |
33 import java.lang.JThread; | 33 import java.lang.Thread; |
34 | 34 |
35 /** | 35 /** |
36 * Contains the algorithm for performing background sorting and filtering in a virtual | 36 * Contains the algorithm for performing background sorting and filtering in a virtual |
37 * table. This is the real implementation for <code>DeferredContentProvider</code>. | 37 * table. This is the real implementation for <code>DeferredContentProvider</code>. |
38 * However, this class will work with anything that implements <code>AbstractVirtualTable</code> | 38 * However, this class will work with anything that implements <code>AbstractVirtualTable</code> |
140 * sortMutex when accessing. | 140 * sortMutex when accessing. |
141 */ | 141 */ |
142 private ConcurrentTableUpdator updator; | 142 private ConcurrentTableUpdator updator; |
143 | 143 |
144 private IProgressMonitor sortingProgressMonitor; | 144 private IProgressMonitor sortingProgressMonitor; |
145 private JThread sortThread = null; | 145 private Thread sortThread = null; |
146 | 146 |
147 private /+volatile+/ FastProgressReporter sortMon; | 147 private /+volatile+/ FastProgressReporter sortMon; |
148 | 148 |
149 private /+volatile+/ ConcurrentTableUpdator.Range range; | 149 private /+volatile+/ ConcurrentTableUpdator.Range range; |
150 | 150 |
475 /** | 475 /** |
476 * true if we need to sort | 476 * true if we need to sort |
477 */ | 477 */ |
478 private bool sortScheduled = false; | 478 private bool sortScheduled = false; |
479 | 479 |
480 private final class SortThread : JThread { | 480 private final class SortThread : Thread { |
481 private this(String name) { | 481 private this(String name) { |
482 super(name); | 482 super(name); |
483 } | 483 } |
484 | 484 |
485 public override void run() { | 485 public override void run() { |