1
0
Fork 0
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:
David McKnight 2007-04-20 16:48:02 +00:00
parent dc98e3c94f
commit cf79eddb02

View file

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