mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-28 11:25:35 +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=model;
|
||||||
fCellCanvasModel.addCellCanvasModelListener(new ITextCanvasModelListener(){
|
fCellCanvasModel.addCellCanvasModelListener(new ITextCanvasModelListener(){
|
||||||
public void rangeChanged(int col, int line, int width, int height) {
|
public void rangeChanged(int col, int line, int width, int height) {
|
||||||
|
if(isDisposed()) return;
|
||||||
repaintRange(col,line,width,height);
|
repaintRange(col,line,width,height);
|
||||||
}
|
}
|
||||||
public void dimensionsChanged(int cols, int rows) {
|
public void dimensionsChanged(int cols, int rows) {
|
||||||
|
if(isDisposed()) return;
|
||||||
calculateGrid();
|
calculateGrid();
|
||||||
}
|
}
|
||||||
public void terminalDataChanged() {
|
public void terminalDataChanged() {
|
||||||
if(isDisposed())
|
if(isDisposed()) return;
|
||||||
return;
|
|
||||||
// scroll to end (unless scroll lock is active)
|
// scroll to end (unless scroll lock is active)
|
||||||
if (!fResizing) {
|
if (!fResizing) {
|
||||||
calculateGrid();
|
calculateGrid();
|
||||||
|
|
Loading…
Add table
Reference in a new issue