|
Lines 157-179
Link Here
|
| 157 |
var req = org.eclipse.swt.Request.getInstance(); |
157 |
var req = org.eclipse.swt.Request.getInstance(); |
| 158 |
if( this._horzScrollBar ) { |
158 |
if( this._horzScrollBar ) { |
| 159 |
this._horzScrollBar.removeEventListener( "changeValue", this._onHorzScrollBarChangeValue, this ); |
159 |
this._horzScrollBar.removeEventListener( "changeValue", this._onHorzScrollBarChangeValue, this ); |
| 160 |
this._horzScrollBar.dispose(); |
160 |
// this._horzScrollBar.dispose(); |
|
|
161 |
this._horzScrollBar.destroy(); |
| 161 |
this._horzScrollBar = null; |
162 |
this._horzScrollBar = null; |
| 162 |
} |
163 |
} |
| 163 |
if( this._vertScrollBar ) { |
164 |
if( this._vertScrollBar ) { |
| 164 |
this._vertScrollBar.removeEventListener( "changeValue", this._onVertScrollBarChangeValue, this ); |
165 |
this._vertScrollBar.removeEventListener( "changeValue", this._onVertScrollBarChangeValue, this ); |
| 165 |
this._vertScrollBar.dispose(); |
166 |
// this._vertScrollBar.dispose(); |
|
|
167 |
this._vertScrollBar.destroy(); |
| 166 |
this._vertScrollBar = null; |
168 |
this._vertScrollBar = null; |
| 167 |
} |
169 |
} |
| 168 |
if( this._clientArea ) { |
170 |
if( this._clientArea ) { |
| 169 |
this._clientArea.removeEventListener( "mousewheel", this._onClientAreaMouseWheel, this ); |
171 |
this._clientArea.removeEventListener( "mousewheel", this._onClientAreaMouseWheel, this ); |
| 170 |
this._clientArea.removeEventListener( "appear", this._onClientAppear, this ); |
172 |
this._clientArea.removeEventListener( "appear", this._onClientAppear, this ); |
| 171 |
this._clientArea.dispose(); |
173 |
// this._clientArea.dispose(); |
|
|
174 |
this._clientArea.destroy(); |
| 172 |
org.eclipse.swt.WidgetManager.getInstance().remove( this._clientArea ); |
175 |
org.eclipse.swt.WidgetManager.getInstance().remove( this._clientArea ); |
| 173 |
this._clientArea = null; |
176 |
this._clientArea = null; |
| 174 |
} |
177 |
} |
| 175 |
if( this._columnArea ) { |
178 |
if( this._columnArea ) { |
| 176 |
this._columnArea.dispose(); |
179 |
// this._columnArea.dispose(); |
|
|
180 |
this._columnArea.destroy(); |
| 177 |
this._columnArea = null; |
181 |
this._columnArea = null; |
| 178 |
} |
182 |
} |
| 179 |
if( this._resizeLine ) { |
183 |
if( this._resizeLine ) { |
|
Lines 188-194
Link Here
|
| 188 |
} |
192 |
} |
| 189 |
if( this._checkBoxes !== null ) { |
193 |
if( this._checkBoxes !== null ) { |
| 190 |
for( var i = 0; i < this._checkBoxes.length; i++ ) { |
194 |
for( var i = 0; i < this._checkBoxes.length; i++ ) { |
| 191 |
this._checkBoxes[ i ].dispose(); |
195 |
// this._checkBoxes[ i ].dispose(); |
|
|
196 |
this._checkBoxes[ i ].destroy(); |
| 192 |
} |
197 |
} |
| 193 |
this._checkBoxes = null; |
198 |
this._checkBoxes = null; |
| 194 |
} |
199 |
} |
|
Lines 919-925
Link Here
|
| 919 |
var checkBox = this._checkBoxes.shift(); |
924 |
var checkBox = this._checkBoxes.shift(); |
| 920 |
checkBox.removeEventListener( "changeChecked", this._onCheckBoxClick, this ); |
925 |
checkBox.removeEventListener( "changeChecked", this._onCheckBoxClick, this ); |
| 921 |
checkBox.setParent( null ); |
926 |
checkBox.setParent( null ); |
| 922 |
checkBox.dispose(); |
927 |
// checkBox.dispose(); |
|
|
928 |
checkBox.destroy(); |
| 923 |
} |
929 |
} |
| 924 |
var row = this._rows.shift(); |
930 |
var row = this._rows.shift(); |
| 925 |
this._unhookRowEventListener( row ); |
931 |
this._unhookRowEventListener( row ); |