mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
check for isDisposed before settings colors
This commit is contained in:
parent
3af711fbbd
commit
ecac8d4eca
1 changed files with 9 additions and 6 deletions
|
@ -416,13 +416,16 @@ public class TraditionalRendering extends AbstractMemoryRendering implements IRe
|
||||||
|
|
||||||
public void applyPreferences()
|
public void applyPreferences()
|
||||||
{
|
{
|
||||||
fRendering.setBackground(getColorBackground());
|
if(!fRendering.isDisposed())
|
||||||
|
{
|
||||||
|
fRendering.setBackground(getColorBackground());
|
||||||
|
|
||||||
AbstractPane panes[] = fRendering.getRenderingPanes();
|
AbstractPane panes[] = fRendering.getRenderingPanes();
|
||||||
for(int i = 0; i < panes.length; i++)
|
for(int i = 0; i < panes.length; i++)
|
||||||
panes[i].setBackground(getColorBackground());
|
panes[i].setBackground(getColorBackground());
|
||||||
|
|
||||||
fRendering.redrawPanes();
|
fRendering.redrawPanes();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Color getColorBackground()
|
public Color getColorBackground()
|
||||||
|
|
Loading…
Add table
Reference in a new issue