Changeset 211:ff59aeb96cac
- Timestamp:
- 04/26/08 04:01:48
(7 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
| r155 |
r211 |
|
| 121 | 121 | runnable = new class() Runnable { |
|---|
| 122 | 122 | 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; |
|---|
| 124 | 124 | if (this.outer.outer.tree.isDisposed()) return; |
|---|
| 125 | 125 | layout(); |
|---|
| 126 | | editor.setVisible(true); |
|---|
| | 126 | this.outer.outer.editor.setVisible(true); |
|---|
| 127 | 127 | } |
|---|
| 128 | 128 | }; |
|---|
| 129 | 129 | } |
|---|
| 130 | 130 | 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); |
|---|
| 133 | 133 | e.display.asyncExec(runnable); |
|---|
| 134 | 134 | } |
|---|
| 135 | 135 | 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); |
|---|
| 138 | 138 | e.display.asyncExec(runnable); |
|---|
| 139 | 139 | } |
|---|