IObservableFactory collectionFactory,
TreeStructureAdvisor structureAdvisor) {
this.structureAdvisor = structureAdvisor;
display = Display.getDefault();
realm = SWTObservables.getRealm(display);
viewerObservable = new WritableValue(realm);
viewerUpdater = null;
elementSetFactory = new IObservableFactory() {
public IObservable createObservable(Object target) {
return ObservableViewerElementSet.withComparer(realm, null,