mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-27 19:05:38 +02:00
[180974] message line needs to account for null text
This commit is contained in:
parent
dc98e3c94f
commit
cf79eddb02
1 changed files with 11 additions and 6 deletions
|
@ -529,12 +529,17 @@ public class SystemMessageLine extends Composite implements ISystemMessageLine {
|
||||||
toolTip = message.getTooltip();
|
toolTip = message.getTooltip();
|
||||||
color = message.getColor();
|
color = message.getColor();
|
||||||
}
|
}
|
||||||
widget.setToolTipText(toolTip);
|
|
||||||
widget.setForeground(color);
|
if (text != null)
|
||||||
widget.setText(text);
|
{
|
||||||
widget.setData(text);
|
if (toolTip != null)
|
||||||
widget.setVisible(text.length() > 0);
|
widget.setToolTipText(toolTip);
|
||||||
adjustText();
|
widget.setForeground(color);
|
||||||
|
widget.setText(text);
|
||||||
|
widget.setData(text);
|
||||||
|
widget.setVisible(text.length() > 0);
|
||||||
|
adjustText();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue