Skip to main content



      Home
Home » Eclipse Projects » GEF » handle to the model class
handle to the model class [message #129721] Thu, 29 April 2004 11:36 Go to next message
Eclipse UserFriend
Originally posted by: shr.xxxxxx.com

I am trying to implement a menu item, which when invoked will call a
method on the DiagramModel and will display the string returned.
The question is how to get access to model in the menu action class? I am
pretty sure its an easy one, i searched the newsgroup, but sometimes it is
difficult to find things if you cannot think of correct keyword for it.

Thanks
shravan
Re: handle to the model class [message #129868 is a reply to message #129721] Thu, 29 April 2004 14:56 Go to previous message
Eclipse UserFriend
Originally posted by: phil.williams.toadmail.com

Give the action a handle to the editor part upon construction and then
have a getModel method on your editor give you the handle to the model.

HTH,
Phil

shravan wrote:

> I am trying to implement a menu item, which when invoked will call a
>method on the DiagramModel and will display the string returned.
> The question is how to get access to model in the menu action class? I am
>pretty sure its an easy one, i searched the newsgroup, but sometimes it is
>difficult to find things if you cannot think of correct keyword for it.
>
>Thanks
>shravan
>
>
>
Previous Topic:Filters in GEF
Next Topic:Newbie Question: Model not being painted
Goto Forum:
  


Current Time: Thu May 08 01:21:31 EDT 2025

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

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

Back to the top