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,6 +529,10 @@ public class SystemMessageLine extends Composite implements ISystemMessageLine {
|
|||
toolTip = message.getTooltip();
|
||||
color = message.getColor();
|
||||
}
|
||||
|
||||
if (text != null)
|
||||
{
|
||||
if (toolTip != null)
|
||||
widget.setToolTipText(toolTip);
|
||||
widget.setForeground(color);
|
||||
widget.setText(text);
|
||||
|
@ -536,6 +540,7 @@ public class SystemMessageLine extends Composite implements ISystemMessageLine {
|
|||
widget.setVisible(text.length() > 0);
|
||||
adjustText();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Hide or show the "more" button. If the message has second level text then
|
||||
|
|
Loading…
Add table
Reference in a new issue