[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Problems with label referencing a derived attribute

Alex Shatalin wrote:

Hello Anthony,

You have to listen for any changes in Action Reference/name of the
referenced
action and fire corresponding EMF notifications then necessary (additional piece of code for ElementImpl.java).
You can use EMF-generated code as an example of eNotify method execution.
In addition i suggest you to verify that "notify" property was set to true for GenFeature representing Element.actionName .genmodel model.

-----------------
Alex Shatalin

Hello,
I didn't know what are the listeners, I studied them and now I know what they are :). I added the listeners in MyFactoryImpl.java in the createAction() and createElement() classes, and I did an Adapter to see that the listeners are right.
I have studied the problem and I have seen that the true problem is that the label of the derived attribute isn't refreshed, i.e. when I change the action reference or the name of the action referenced, the value of the label is the same until I select the label to edit it. When I select it, the label takes the correct value.
So I think the true problem is the label don't refresh automatically.


Where do I add the listener and how I refresh the label?

                                                            Thanks.