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