How do I change color in programmatic way [message #859692] |
Fri, 27 April 2012 15:15  |
Eclipse User |
|
|
|
Hi there,
I created my ChangeStateColorFeature which extends AbstractCustomFeature, registered it in feature provider. It all works well.
Right now I am trying to change color of state (a rectangle in diagram) in programmatic way, in other words, change its color without clicking any button. Firstly I was trying to get access to the context object which seems to have control of everything. Later I thought there should be some event system going on. Neither worked for me.
Could anyone give a brief idea of how to achieve this? Thanks in advance.
Sincerely,
Johnny
|
|
|
|
|
|
Re: How do I change color in programmatic way [message #1065711 is a reply to message #868183] |
Thu, 27 June 2013 04:46  |
Eclipse User |
|
|
|
Hi All,
The solution above(by Micheal wenz) works but.once the selection is removed back from pictogram element it is not reverted back to its previous color.can you shed any views on this.
Regards,
Anudeep
[Updated on: Thu, 27 June 2013 04:48] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.38388 seconds