Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Notification EMF/GMF
Notification EMF/GMF [message #419958] Sat, 14 June 2008 09:50 Go to next message
Nicola Salvo is currently offline Nicola SalvoFriend
Messages: 42
Registered: July 2009
Member
Hello,

I'm implementing a Workflow Editor using EMF to design the model and GMF
to implement the visualization. I have two attribute in the same EClass
that are required to show a drop down list retrieved from a server. The
element A retrieves the list using the getChoiceOfValues methods, and it's
working. The element B needs to retrieve the drop down list dynamically,
according to the value selected by the user for the element A.
I know that to use notification, I have to change something in the
notifyChange method, but I don't know exactly how. Moreover using GFM, I
don't know if implementing the notification in EMF, this will be working
also in GMF.
Sorry for the silly question, but I spend a day, I'm still confused. Is
there any tutorial or example that explains how to realize a notification?
Cheers

Nicola
Re: Notification EMF/GMF [message #419960 is a reply to message #419958] Sat, 14 June 2008 12:17 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Nicola,

All changes to the model will produce notification, though only if
there's something listening, i.e., if eAdapters() isn't empty. The
notifyChanged method in the item provider is only acting as a filter and
a router, i.e., it's decides which notifications are interesting and
decides how they will be forwarded to the factory, which in turn uses
that information to update the view. I'm not sure how this is involved
in the problem you describe? Don't you fetch the choices of values each
time the method is called? Or are you caching them and needing to
decide when to refetch them? For that purpose, you might just cache the
value used the fetch last time and if you need to fetch and that value
doesn't match you fetch based on the new value, i.e., do it on demand
rather than as a result of responding to a notification.


Nicola Salvo wrote:
> Hello,
>
> I'm implementing a Workflow Editor using EMF to design the model and
> GMF to implement the visualization. I have two attribute in the same
> EClass that are required to show a drop down list retrieved from a
> server. The element A retrieves the list using the getChoiceOfValues
> methods, and it's working. The element B needs to retrieve the drop
> down list dynamically, according to the value selected by the user for
> the element A.
> I know that to use notification, I have to change something in the
> notifyChange method, but I don't know exactly how. Moreover using
> GFM, I don't know if implementing the notification in EMF, this will
> be working also in GMF.
> Sorry for the silly question, but I spend a day, I'm still confused.
> Is there any tutorial or example that explains how to realize a
> notification?
> Cheers
>
> Nicola
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Notification EMF/GMF [message #420003 is a reply to message #419960] Tue, 17 June 2008 09:05 Go to previous messageGo to next message
Nicola Salvo is currently offline Nicola SalvoFriend
Messages: 42
Registered: July 2009
Member
Hello Ed,

sorry for bugging you again, but I'm still confused. What I want to do is
really simple, I just don't know how to do it. Actually I haven't any
Adapter in my code, thus I suppose I'm doing something really wrong. Is
there any example (or a tutorial) that implements some kind of
notification?
Thanks in advance for the time you are spending helping me.
Cheers

Nicola

Ed Merks wrote:

> Nicola,

> All changes to the model will produce notification, though only if
> there's something listening, i.e., if eAdapters() isn't empty. The
> notifyChanged method in the item provider is only acting as a filter and
> a router, i.e., it's decides which notifications are interesting and
> decides how they will be forwarded to the factory, which in turn uses
> that information to update the view. I'm not sure how this is involved
> in the problem you describe? Don't you fetch the choices of values each
> time the method is called? Or are you caching them and needing to
> decide when to refetch them? For that purpose, you might just cache the
> value used the fetch last time and if you need to fetch and that value
> doesn't match you fetch based on the new value, i.e., do it on demand
> rather than as a result of responding to a notification.


> Nicola Salvo wrote:
>> Hello,
>>
>> I'm implementing a Workflow Editor using EMF to design the model and
>> GMF to implement the visualization. I have two attribute in the same
>> EClass that are required to show a drop down list retrieved from a
>> server. The element A retrieves the list using the getChoiceOfValues
>> methods, and it's working. The element B needs to retrieve the drop
>> down list dynamically, according to the value selected by the user for
>> the element A.
>> I know that to use notification, I have to change something in the
>> notifyChange method, but I don't know exactly how. Moreover using
>> GFM, I don't know if implementing the notification in EMF, this will
>> be working also in GMF.
>> Sorry for the silly question, but I spend a day, I'm still confused.
>> Is there any tutorial or example that explains how to realize a
>> notification?
>> Cheers
>>
>> Nicola
>>
Re: Notification EMF/GMF [message #420004 is a reply to message #420003] Tue, 17 June 2008 09:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Nicola,

Comments below.

Nicola Salvo wrote:
> Hello Ed,
>
> sorry for bugging you again, but I'm still confused. What I want to do
> is really simple, I just don't know how to do it.
It's almost a contradiction. :-P
> Actually I haven't any Adapter in my code, thus I suppose I'm doing
> something really wrong.
I wonder what it is your doing. You didn't actually answer any of the
questions I asked.
> Is there any example (or a tutorial) that implements some kind of
> notification?
Every generated editor shows notification in action. For example, use
the properties view to change the property used as the label in the tree
view for some object and set a breakpoint in the notifiyChanged method
of the item provider for that type of object. When you change the
property, the tree view updates because of the notification that you
breakpoint will hit.
> Thanks in advance for the time you are spending helping me.
> Cheers
>
> Nicola
> Ed Merks wrote:
>
>> Nicola,
>
>> All changes to the model will produce notification, though only if
>> there's something listening, i.e., if eAdapters() isn't empty. The
>> notifyChanged method in the item provider is only acting as a filter
>> and a router, i.e., it's decides which notifications are interesting
>> and decides how they will be forwarded to the factory, which in turn
>> uses that information to update the view. I'm not sure how this is
>> involved in the problem you describe? Don't you fetch the choices of
>> values each time the method is called? Or are you caching them and
>> needing to decide when to refetch them? For that purpose, you might
>> just cache the value used the fetch last time and if you need to
>> fetch and that value doesn't match you fetch based on the new value,
>> i.e., do it on demand rather than as a result of responding to a
>> notification.
>
>
>> Nicola Salvo wrote:
>>> Hello,
>>>
>>> I'm implementing a Workflow Editor using EMF to design the model and
>>> GMF to implement the visualization. I have two attribute in the same
>>> EClass that are required to show a drop down list retrieved from a
>>> server. The element A retrieves the list using the getChoiceOfValues
>>> methods, and it's working. The element B needs to retrieve the drop
>>> down list dynamically, according to the value selected by the user
>>> for the element A.
>>> I know that to use notification, I have to change something in the
>>> notifyChange method, but I don't know exactly how. Moreover using
>>> GFM, I don't know if implementing the notification in EMF, this will
>>> be working also in GMF.
>>> Sorry for the silly question, but I spend a day, I'm still confused.
>>> Is there any tutorial or example that explains how to realize a
>>> notification?
>>> Cheers
>>>
>>> Nicola
>>>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Notification EMF/GMF [message #420157 is a reply to message #420004] Thu, 19 June 2008 14:05 Go to previous messageGo to next message
Nicola Salvo is currently offline Nicola SalvoFriend
Messages: 42
Registered: July 2009
Member
Hello Ed,

I'm back, again... I didn't answer to any of your question, just because I
didn't know how to answer:). Now my ideas are (just a bit) more clear. I'd
like fetch B values every time A changes. I don't think I need to cache
the values.
I managed to obtain a working editor that every time A change stores the
new value in a String. I'm not sure this is the correct way of working,
but I'll post the code just in case it might be useful for somebody
looking for a similar solution.

public class BaseResourceActivityItemProvider ...{

private String selectedResource = "";
protected Adapter resourceActivityAdapter = new AdapterImpl(){
public void notifyChanged(Notification notification){
if (notification.getFeatureID(BaseResourceActivity.class) ==
ModelPackage.BASE_RESOURCE_ACTIVITY__RESOURCE) {
selectedResource = notification.getNewStringValue();
}
}
};

.
.
.
protected void addInstanceNamePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(new temPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterF actory(),
getResourceLocator(),
getString("_UI_BaseResourceActivity_instanceName_feature"),
getString("_UI_PropertyDescriptor_description",
"_UI_BaseResourceActivity_instanceName_feature",
"_UI_BaseResourceActivity_type"),
ModelPackage.Literals.BASE_RESOURCE_ACTIVITY__INSTANCE_NAME, true,false,true,
ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,null,null)
{
public Collection getChoiceOfValues(Object object){

Collection activities = new ArrayList(); if(selectedResource=="")
//I need to fetch a default list if no resource is selected
activities.add("Test");
else{
//fetch the activities according to the selected
resource
}
return activities;
}
});
}

protected void addResourcePropertyDescriptor(Object object) {
//similar to the above mothod
..
..
public Collection getChoiceOfValues(Object object){


//fetch the resources

return resources;
}
}

..
..

public String getText(Object object) {
((BaseResourceActivity)object).eAdapters().add(resourceActiv ityAdapter);
String label = ((BaseResourceActivity)object).getName();
return label == null || label.length() == 0 ?
getString("_UI_BaseResourceActivity_type") :
getString("_UI_BaseResourceActivity_type") + " " + label;
}

}

I'm not perfectly sure about this code, but at least is working with the
EMF editor. Now I have to implement the same solution with the GMF editor,
I'm trying to modify the handleNotificationEvent() method in the edit.part
using

SetCommand sCommand = (SetCommand)
SetCommand.create(editingDomain,feature, attr, "pippo");

but right now is not working.
Cheers

Nicola
Ed Merks wrote:

> Nicola,

> Comments below.

> Nicola Salvo wrote:
>> Hello Ed,
>>
>> sorry for bugging you again, but I'm still confused. What I want to do
>> is really simple, I just don't know how to do it.
> It's almost a contradiction. :-P
>> Actually I haven't any Adapter in my code, thus I suppose I'm doing
>> something really wrong.
> I wonder what it is your doing. You didn't actually answer any of the
> questions I asked.
>> Is there any example (or a tutorial) that implements some kind of
>> notification?
> Every generated editor shows notification in action. For example, use
> the properties view to change the property used as the label in the tree
> view for some object and set a breakpoint in the notifiyChanged method
> of the item provider for that type of object. When you change the
> property, the tree view updates because of the notification that you
> breakpoint will hit.
>> Thanks in advance for the time you are spending helping me.
>> Cheers
>>
>> Nicola
>> Ed Merks wrote:
>>
>>> Nicola,
>>
>>> All changes to the model will produce notification, though only if
>>> there's something listening, i.e., if eAdapters() isn't empty. The
>>> notifyChanged method in the item provider is only acting as a filter
>>> and a router, i.e., it's decides which notifications are interesting
>>> and decides how they will be forwarded to the factory, which in turn
>>> uses that information to update the view. I'm not sure how this is
>>> involved in the problem you describe? Don't you fetch the choices of
>>> values each time the method is called? Or are you caching them and
>>> needing to decide when to refetch them? For that purpose, you might
>>> just cache the value used the fetch last time and if you need to
>>> fetch and that value doesn't match you fetch based on the new value,
>>> i.e., do it on demand rather than as a result of responding to a
>>> notification.
>>
>>
>>> Nicola Salvo wrote:
>>>> Hello,
>>>>
>>>> I'm implementing a Workflow Editor using EMF to design the model and
>>>> GMF to implement the visualization. I have two attribute in the same
>>>> EClass that are required to show a drop down list retrieved from a
>>>> server. The element A retrieves the list using the getChoiceOfValues
>>>> methods, and it's working. The element B needs to retrieve the drop
>>>> down list dynamically, according to the value selected by the user
>>>> for the element A.
>>>> I know that to use notification, I have to change something in the
>>>> notifyChange method, but I don't know exactly how. Moreover using
>>>> GFM, I don't know if implementing the notification in EMF, this will
>>>> be working also in GMF.
>>>> Sorry for the silly question, but I spend a day, I'm still confused.
>>>> Is there any tutorial or example that explains how to realize a
>>>> notification?
>>>> Cheers
>>>>
>>>> Nicola
>>>>
>>
>>
Re: Notification EMF/GMF [message #420160 is a reply to message #420157] Thu, 19 June 2008 15:05 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Nicola,

Comments below.


Nicola Salvo wrote:
> Hello Ed,
>
> I'm back, again... I didn't answer to any of your question, just
> because I didn't know how to answer:). Now my ideas are (just a bit)
> more clear. I'd like fetch B values every time A changes. I don't
> think I need to cache the values.
I suppose I wonder why you need them immediately after A changes rather
then fetch them on demand when they are needed.
> I managed to obtain a working editor that every time A change stores
> the new value in a String. I'm not sure this is the correct way of
> working, but I'll post the code just in case it might be useful for
> somebody looking for a similar solution.
>
> public class BaseResourceActivityItemProvider ...{
>
> private String selectedResource = "";
> protected Adapter resourceActivityAdapter = new AdapterImpl(){
> public void notifyChanged(Notification notification){
> if (notification.getFeatureID(BaseResourceActivity.class) ==
> ModelPackage.BASE_RESOURCE_ACTIVITY__RESOURCE) {
> selectedResource = notification.getNewStringValue();
> }
> }
> };
>
> .
> .
> .
> protected void addInstanceNamePropertyDescriptor(Object object) {
> itemPropertyDescriptors.add
> (new temPropertyDescriptor
> (((ComposeableAdapterFactory)adapterFactory).getRootAdapterF actory(),
> getResourceLocator(),
> getString("_UI_BaseResourceActivity_instanceName_feature"),
> getString("_UI_PropertyDescriptor_description",
> "_UI_BaseResourceActivity_instanceName_feature",
> "_UI_BaseResourceActivity_type"),
> ModelPackage.Literals.BASE_RESOURCE_ACTIVITY__INSTANCE_NAME, true,false,true,
>
> ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,null,null)
> {
> public Collection getChoiceOfValues(Object object){
>
> Collection activities = new ArrayList();
> if(selectedResource=="") //I need to fetch a default list if no
> resource is selected
> activities.add("Test");
> else{
> //fetch the activities according to the selected
> resource
Why base this on a cached value rather than using object to navigate to
the A instance that will yield the information?
> }
> return activities;
> }
> });
> }
>
> protected void addResourcePropertyDescriptor(Object object) {
> //similar to the above mothod
> .
> .
> public Collection getChoiceOfValues(Object object){
>
>
> //fetch the resources
>
> return resources;
> }
> }
>
> .
> .
>
> public String getText(Object object) {
>
> ((BaseResourceActivity)object).eAdapters().add(resourceActiv ityAdapter);
> String label = ((BaseResourceActivity)object).getName();
> return label == null || label.length() == 0 ?
> getString("_UI_BaseResourceActivity_type") :
> getString("_UI_BaseResourceActivity_type") + " " + label;
> }
>
> }
>
> I'm not perfectly sure about this code, but at least is working with
> the EMF editor. Now I have to implement the same solution with the GMF
> editor, I'm trying to modify the handleNotificationEvent() method in
> the edit.part using
> SetCommand sCommand = (SetCommand)
> SetCommand.create(editingDomain,feature, attr, "pippo");
>
> but right now is not working.
It's not clear what's not working. Is the right adapter attached? Can
you change the design to not use a cached value but rather determine the
selected resource from the "object" argument?
> Cheers
>
> Nicola
> Ed Merks wrote:
>
>> Nicola,
>
>> Comments below.
>
>> Nicola Salvo wrote:
>>> Hello Ed,
>>>
>>> sorry for bugging you again, but I'm still confused. What I want to
>>> do is really simple, I just don't know how to do it.
>> It's almost a contradiction. :-P
>>> Actually I haven't any Adapter in my code, thus I suppose I'm doing
>>> something really wrong.
>> I wonder what it is your doing. You didn't actually answer any of
>> the questions I asked.
>>> Is there any example (or a tutorial) that implements some kind of
>>> notification?
>> Every generated editor shows notification in action. For example,
>> use the properties view to change the property used as the label in
>> the tree view for some object and set a breakpoint in the
>> notifiyChanged method of the item provider for that type of object.
>> When you change the property, the tree view updates because of the
>> notification that you breakpoint will hit.
>>> Thanks in advance for the time you are spending helping me.
>>> Cheers
>>>
>>> Nicola
>>> Ed Merks wrote:
>>>
>>>> Nicola,
>>>
>>>> All changes to the model will produce notification, though only if
>>>> there's something listening, i.e., if eAdapters() isn't empty. The
>>>> notifyChanged method in the item provider is only acting as a
>>>> filter and a router, i.e., it's decides which notifications are
>>>> interesting and decides how they will be forwarded to the factory,
>>>> which in turn uses that information to update the view. I'm not
>>>> sure how this is involved in the problem you describe? Don't you
>>>> fetch the choices of values each time the method is called? Or are
>>>> you caching them and needing to decide when to refetch them? For
>>>> that purpose, you might just cache the value used the fetch last
>>>> time and if you need to fetch and that value doesn't match you
>>>> fetch based on the new value, i.e., do it on demand rather than as
>>>> a result of responding to a notification.
>>>
>>>
>>>> Nicola Salvo wrote:
>>>>> Hello,
>>>>>
>>>>> I'm implementing a Workflow Editor using EMF to design the model
>>>>> and GMF to implement the visualization. I have two attribute in
>>>>> the same EClass that are required to show a drop down list
>>>>> retrieved from a server. The element A retrieves the list using
>>>>> the getChoiceOfValues methods, and it's working. The element B
>>>>> needs to retrieve the drop down list dynamically, according to the
>>>>> value selected by the user for the element A.
>>>>> I know that to use notification, I have to change something in the
>>>>> notifyChange method, but I don't know exactly how. Moreover using
>>>>> GFM, I don't know if implementing the notification in EMF, this
>>>>> will be working also in GMF.
>>>>> Sorry for the silly question, but I spend a day, I'm still
>>>>> confused. Is there any tutorial or example that explains how to
>>>>> realize a notification?
>>>>> Cheers
>>>>>
>>>>> Nicola
>>>>>
>>>
>>>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Notification EMF/GMF [message #420201 is a reply to message #420160] Sat, 21 June 2008 09:42 Go to previous message
Nicola Salvo is currently offline Nicola SalvoFriend
Messages: 42
Registered: July 2009
Member
Thank you very much!
I haven't thought about using directly the "object" argument! Now it's
working.
Cheers

Nicola

Ed Merks wrote:

> Nicola,

> Comments below.


> Nicola Salvo wrote:
>> Hello Ed,
>>
>> I'm back, again... I didn't answer to any of your question, just
>> because I didn't know how to answer:). Now my ideas are (just a bit)
>> more clear. I'd like fetch B values every time A changes. I don't
>> think I need to cache the values.
> I suppose I wonder why you need them immediately after A changes rather
> then fetch them on demand when they are needed.
>> I managed to obtain a working editor that every time A change stores
>> the new value in a String. I'm not sure this is the correct way of
>> working, but I'll post the code just in case it might be useful for
>> somebody looking for a similar solution.
>>
>> public class BaseResourceActivityItemProvider ...{
>>
>> private String selectedResource = "";
>> protected Adapter resourceActivityAdapter = new AdapterImpl(){
>> public void notifyChanged(Notification notification){
>> if (notification.getFeatureID(BaseResourceActivity.class) ==
>> ModelPackage.BASE_RESOURCE_ACTIVITY__RESOURCE) {
>> selectedResource = notification.getNewStringValue();
>> }
>> }
>> };
>>
>> .
>> .
>> .
>> protected void addInstanceNamePropertyDescriptor(Object object) {
>> itemPropertyDescriptors.add
>> (new temPropertyDescriptor
>> (((ComposeableAdapterFactory)adapterFactory).getRootAdapterF actory(),
>> getResourceLocator(),
>> getString("_UI_BaseResourceActivity_instanceName_feature"),
>> getString("_UI_PropertyDescriptor_description",
>> "_UI_BaseResourceActivity_instanceName_feature",
>> "_UI_BaseResourceActivity_type"),
>>
ModelPackage.Literals.BASE_RESOURCE_ACTIVITY__INSTANCE_NAME, true,false,true,
>>
>> ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,null,null)
>> {
>> public Collection getChoiceOfValues(Object object){
>>
>> Collection activities = new ArrayList();
>> if(selectedResource=="") //I need to fetch a default list if no
>> resource is selected
>> activities.add("Test");
>> else{
>> //fetch the activities according to the selected
>> resource
> Why base this on a cached value rather than using object to navigate to
> the A instance that will yield the information?
>> }
>> return activities;
>> }
>> });
>> }
>>
>> protected void addResourcePropertyDescriptor(Object object) {
>> //similar to the above mothod
>> .
>> .
>> public Collection getChoiceOfValues(Object object){
>>
>>
>> //fetch the resources
>>
>> return resources;
>> }
>> }
>>
>> .
>> .
>>
>> public String getText(Object object) {
>>
>> ((BaseResourceActivity)object).eAdapters().add(resourceActiv ityAdapter);
>> String label = ((BaseResourceActivity)object).getName();
>> return label == null || label.length() == 0 ?
>> getString("_UI_BaseResourceActivity_type") :
>> getString("_UI_BaseResourceActivity_type") + " " + label;
>> }
>>
>> }
>>
>> I'm not perfectly sure about this code, but at least is working with
>> the EMF editor. Now I have to implement the same solution with the GMF
>> editor, I'm trying to modify the handleNotificationEvent() method in
>> the edit.part using
>> SetCommand sCommand = (SetCommand)
>> SetCommand.create(editingDomain,feature, attr, "pippo");
>>
>> but right now is not working.
> It's not clear what's not working. Is the right adapter attached? Can
> you change the design to not use a cached value but rather determine the
> selected resource from the "object" argument?
>> Cheers
>>
>> Nicola
>> Ed Merks wrote:
>>
>>> Nicola,
>>
>>> Comments below.
>>
>>> Nicola Salvo wrote:
>>>> Hello Ed,
>>>>
>>>> sorry for bugging you again, but I'm still confused. What I want to
>>>> do is really simple, I just don't know how to do it.
>>> It's almost a contradiction. :-P
>>>> Actually I haven't any Adapter in my code, thus I suppose I'm doing
>>>> something really wrong.
>>> I wonder what it is your doing. You didn't actually answer any of
>>> the questions I asked.
>>>> Is there any example (or a tutorial) that implements some kind of
>>>> notification?
>>> Every generated editor shows notification in action. For example,
>>> use the properties view to change the property used as the label in
>>> the tree view for some object and set a breakpoint in the
>>> notifiyChanged method of the item provider for that type of object.
>>> When you change the property, the tree view updates because of the
>>> notification that you breakpoint will hit.
>>>> Thanks in advance for the time you are spending helping me.
>>>> Cheers
>>>>
>>>> Nicola
>>>> Ed Merks wrote:
>>>>
>>>>> Nicola,
>>>>
>>>>> All changes to the model will produce notification, though only if
>>>>> there's something listening, i.e., if eAdapters() isn't empty. The
>>>>> notifyChanged method in the item provider is only acting as a
>>>>> filter and a router, i.e., it's decides which notifications are
>>>>> interesting and decides how they will be forwarded to the factory,
>>>>> which in turn uses that information to update the view. I'm not
>>>>> sure how this is involved in the problem you describe? Don't you
>>>>> fetch the choices of values each time the method is called? Or are
>>>>> you caching them and needing to decide when to refetch them? For
>>>>> that purpose, you might just cache the value used the fetch last
>>>>> time and if you need to fetch and that value doesn't match you
>>>>> fetch based on the new value, i.e., do it on demand rather than as
>>>>> a result of responding to a notification.
>>>>
>>>>
>>>>> Nicola Salvo wrote:
>>>>>> Hello,
>>>>>>
>>>>>> I'm implementing a Workflow Editor using EMF to design the model
>>>>>> and GMF to implement the visualization. I have two attribute in
>>>>>> the same EClass that are required to show a drop down list
>>>>>> retrieved from a server. The element A retrieves the list using
>>>>>> the getChoiceOfValues methods, and it's working. The element B
>>>>>> needs to retrieve the drop down list dynamically, according to the
>>>>>> value selected by the user for the element A.
>>>>>> I know that to use notification, I have to change something in the
>>>>>> notifyChange method, but I don't know exactly how. Moreover using
>>>>>> GFM, I don't know if implementing the notification in EMF, this
>>>>>> will be working also in GMF.
>>>>>> Sorry for the silly question, but I spend a day, I'm still
>>>>>> confused. Is there any tutorial or example that explains how to
>>>>>> realize a notification?
>>>>>> Cheers
>>>>>>
>>>>>> Nicola
>>>>>>
>>>>
>>>>
>>
>>
Previous Topic:Automating Derived EStructuralFeatures
Next Topic:eAdapter Notifications Batched ?
Goto Forum:
  


Current Time: Fri Apr 19 13:58:49 GMT 2024

Powered by FUDForum. Page generated in 0.03078 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top