[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[News.eclipse.technology.gmf] Tools/Items icons assignment

Hi,

I have a problem with having different icons displayed for different children of an object.

My domain model looks like this:

 ________            _________
| Object | errors   | Message |
|        |--------->|         |
|        | warnings |         |
|        |--------->|         |
|________|          |_________|

The Object node has compartments for errors and warnings represented by labels.

The edit code generated by .genmodel file contains MessageItemProvider class with method getImage(...) always returning same image (generated Message.gif).
My Palette contains two Creation Tools, one for Object errors, and another for Object warnings. The icons I specify for them show in the palette but their diagram nodes still have the generated Message.gif icon.


Is there any way to bypass this (I want the icons chosen in .gmftool file to appear on a diagram as well) without subclassing Message to ErrorMessage and WarningMessage, so there would be two ItemProviders?