0
我想更改在Eclipse RCP环境中通过IMessageManager
实现添加的消息的颜色。我试图在相应的控件中设置颜色,但这没有效果。Eclipse RCP:更改IMessageManager中消息的颜色
例如
Device device = Display.getCurrent();
Color red = new Color(device, 255, 0, 0);
control.setForeground(red);
messageManager.addMessage(MESSAGE_KEY, message, null, IMessageProvider.INFORMATION, control);
我该如何做到这一点,是否有一个现有的接口提供这种功能?
预先感谢
谢谢,作品非常好 – StarSheriff