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