[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Changing a label to a dropdown menu


These labels are of type WrappingLabel:

http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.gmf.doc/reference/api/runtime/org/eclipse/gmf/runtime/draw2d/ui/figures/WrappingLabel.html

WrappingLabel is used to draw the decorating icon along with the text (if ElementIcon is set to true in gmfgraph Diagram Label definition).
So maybe a place to start would be creating a custom figure by subclassing WrappingLabel.

Just one more question before I start digging: I don't use the decorating icon in my diagram...is this still the place where I should look? Because as far as I've understood (which might be wrong :)), the icon and the text field aren't "one piece"? Don't I want to manipulate the text field rather than the icon? Or is that not possible?


/Anna