mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
[180974] message line needs to account for null text
This commit is contained in:
parent
b08e6ce19e
commit
1f7414b6de
1 changed files with 10 additions and 12 deletions
|
@ -525,21 +525,19 @@ public class SystemMessageLine extends Composite implements ISystemMessageLine {
|
|||
String toolTip = null;
|
||||
Color color = null;
|
||||
if (message != null) {
|
||||
text = message.getText();
|
||||
toolTip = message.getTooltip();
|
||||
text = message.getText() != null ? message.getText() : "";
|
||||
toolTip = message.getTooltip() != null ? message.getTooltip() : "";
|
||||
color = message.getColor();
|
||||
}
|
||||
|
||||
if (text != null)
|
||||
{
|
||||
if (toolTip != null)
|
||||
widget.setToolTipText(toolTip);
|
||||
widget.setForeground(color);
|
||||
widget.setText(text);
|
||||
widget.setData(text);
|
||||
widget.setVisible(text.length() > 0);
|
||||
adjustText();
|
||||
}
|
||||
|
||||
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