mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +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();
|
||||
color = message.getColor();
|
||||
}
|
||||
widget.setToolTipText(toolTip);
|
||||
widget.setForeground(color);
|
||||
widget.setText(text);
|
||||
widget.setData(text);
|
||||
widget.setVisible(text.length() > 0);
|
||||
adjustText();
|
||||
|
||||
if (text != null)
|
||||
{
|
||||
if (toolTip != null)
|
||||
widget.setToolTipText(toolTip);
|
||||
widget.setForeground(color);
|
||||
widget.setText(text);
|
||||
widget.setData(text);
|
||||
widget.setVisible(text.length() > 0);
|
||||
adjustText();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue