Changeset 211:ff59aeb96cac

Show
Ignore:
Timestamp:
04/26/08 04:01:48 (4 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Fix problem with dmd 1.029

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/custom/TreeEditor.d

    r155 r211  
    121121            runnable = new class() Runnable { 
    122122                public void run() { 
    123                     if (editor is null || editor.isDisposed()) return; 
     123                    if (this.outer.outer.editor is null || this.outer.outer.editor.isDisposed()) return; 
    124124                    if (this.outer.outer.tree.isDisposed()) return; 
    125125                    layout(); 
    126                     editor.setVisible(true); 
     126                    this.outer.outer.editor.setVisible(true); 
    127127                } 
    128128            }; 
    129129        } 
    130130        public void treeCollapsed(TreeEvent e) { 
    131             if (editor is null || editor.isDisposed ()) return; 
    132             editor.setVisible(false); 
     131            if (this.outer.editor is null || this.outer.editor.isDisposed ()) return; 
     132            this.outer.editor.setVisible(false); 
    133133            e.display.asyncExec(runnable); 
    134134        } 
    135135        public void treeExpanded(TreeEvent e) { 
    136             if (editor is null || editor.isDisposed ()) return; 
    137             editor.setVisible(false); 
     136            if (this.outer.editor is null || this.outer.editor.isDisposed ()) return; 
     137            this.outer.editor.setVisible(false); 
    138138            e.display.asyncExec(runnable); 
    139139        }