mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Terminal: Fix SWT Widget disposed error
This commit is contained in:
parent
0d84a4ad28
commit
cedfaf8a03
1 changed files with 4 additions and 2 deletions
|
@ -90,14 +90,16 @@ public class TextCanvas extends GridCanvas {
|
|||
fCellCanvasModel=model;
|
||||
fCellCanvasModel.addCellCanvasModelListener(new ITextCanvasModelListener(){
|
||||
public void rangeChanged(int col, int line, int width, int height) {
|
||||
if(isDisposed()) return;
|
||||
repaintRange(col,line,width,height);
|
||||
}
|
||||
public void dimensionsChanged(int cols, int rows) {
|
||||
if(isDisposed()) return;
|
||||
calculateGrid();
|
||||
}
|
||||
public void terminalDataChanged() {
|
||||
if(isDisposed())
|
||||
return;
|
||||
if(isDisposed()) return;
|
||||
|
||||
// scroll to end (unless scroll lock is active)
|
||||
if (!fResizing) {
|
||||
calculateGrid();
|
||||
|
|
Loading…
Add table
Reference in a new issue