Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Change model on property change
Change model on property change [message #895034] Wed, 11 July 2012 13:24 Go to next message
Matthias N is currently offline Matthias NFriend
Messages: 66
Registered: June 2012
Member
Hi,

I want to change the model if a property changes. For example I have the domain element "AnalysisFunctionPrototype" and I want to add an element to the element if one if its propertys is changed.

So far I can register if the desired property has changed via "handleNotificationEvent(..)" in my AnalysisFunctionPrototypeCanonicalEditPolicy.

But I don't know how to get the domain element, e.g. I don't know how to do
AnalysisFunctionPrototype type = get????
type.getList().add(new ...)


Btw, I don't want to edit the generated EMF code, instead I want to adjust th generated diagram code.

Thanks
Re: Change model on property change [message #895051 is a reply to message #895034] Wed, 11 July 2012 14:34 Go to previous messageGo to next message
Manuel Ihlenfeld is currently offline Manuel IhlenfeldFriend
Messages: 6
Registered: June 2012
Junior Member
Matthias,

you may try

AnalysisFunctionPrototype type = (AnalysisFunctionPrototype)
getSemanticHost();

Regards
Manuel
Re: Change model on property change [message #896130 is a reply to message #895051] Tue, 17 July 2012 11:07 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

if you are using the latest version of GMF-Tooling, you should take a look to https://bugs.eclipse.org/bugs/show_bug.cgi?id=368398

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Change model on property change [message #896183 is a reply to message #896130] Tue, 17 July 2012 14:04 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi Aurelien,

I use the latest information of GMF but cannot find the visual pin model element in GMFGraph. Can you give a hint on where to add it to? The Visual Effect Mapping in gmfmap is available.

Ralph
Re: Change model on property change [message #907444 is a reply to message #896130] Tue, 04 September 2012 02:39 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
how to define a PIN?
Re: Change model on property change [message #907522 is a reply to message #907444] Tue, 04 September 2012 06:55 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

in the gmfgraph model you should be able to add a pin such as color pin or visible pin to the figure you want to change dynamically. Make sure that you have installed GMF 3.0.

Cheers,

Ralph
Re: Change model on property change [message #907588 is a reply to message #907444] Tue, 04 September 2012 08:02 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I am using Helios service release 1....i trying to install GMF 3.0 but this version is not available. can u please give a link to download??
Re: Change model on property change [message #907606 is a reply to message #907444] Tue, 04 September 2012 08:03 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I am using Helios service release 1....i trying to install GMF 3.0 but this version is not available. can u please give a link to download??
Re: Change model on property change [message #907607 is a reply to message #907444] Tue, 04 September 2012 08:11 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I cannot find GMF version 3.0. can u give me any link where i can download?
Re: Change model on property change [message #907614 is a reply to message #907444] Tue, 04 September 2012 08:03 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I am using Helios service release 1....i trying to install GMF 3.0 but this version is not available. can u please give a link to download??
Re: Change model on property change [message #907622 is a reply to message #907444] Tue, 04 September 2012 08:03 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I am using Helios service release 1....i trying to install GMF 3.0 but this version is not available. can u please give a link to download??
Re: Change model on property change [message #907623 is a reply to message #907444] Tue, 04 September 2012 08:11 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I cannot find GMF version 3.0. can u give me any link where i can download?
Re: Change model on property change [message #907627 is a reply to message #907444] Tue, 04 September 2012 08:03 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I am using Helios service release 1....i trying to install GMF 3.0 but this version is not available. can u please give a link to download??
Re: Change model on property change [message #907628 is a reply to message #907444] Tue, 04 September 2012 08:11 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I cannot find GMF version 3.0. can u give me any link where i can download?
Re: Change model on property change [message #907640 is a reply to message #907444] Tue, 04 September 2012 08:03 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I am using Helios service release 1....i trying to install GMF 3.0 but this version is not available. can u please give a link to download??
Re: Change model on property change [message #907641 is a reply to message #907444] Tue, 04 September 2012 08:11 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I cannot find GMF version 3.0. can u give me any link where i can download?
Re: Change model on property change [message #907650 is a reply to message #907444] Tue, 04 September 2012 08:03 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I am using Helios service release 1....i trying to install GMF 3.0 but this version is not available. can u please give a link to download??
Re: Change model on property change [message #907651 is a reply to message #907444] Tue, 04 September 2012 08:11 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I cannot find GMF version 3.0. can u give me any link where i can download?
Re: Change model on property change [message #907660 is a reply to message #907444] Tue, 04 September 2012 08:03 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I am using Helios service release 1....i trying to install GMF 3.0 but this version is not available. can u please give a link to download??
Re: Change model on property change [message #907661 is a reply to message #907444] Tue, 04 September 2012 08:11 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I cannot find GMF version 3.0. can u give me any link where i can download?
Re: Change model on property change [message #907675 is a reply to message #907444] Tue, 04 September 2012 08:03 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I am using Helios service release 1....i trying to install GMF 3.0 but this version is not available. can u please give a link to download??
Re: Change model on property change [message #907676 is a reply to message #907444] Tue, 04 September 2012 08:11 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I cannot find GMF version 3.0. can u give me any link where i can download?
Re: Change model on property change [message #907689 is a reply to message #907444] Tue, 04 September 2012 08:03 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I am using Helios service release 1....i trying to install GMF 3.0 but this version is not available. can u please give a link to download??
Re: Change model on property change [message #907690 is a reply to message #907444] Tue, 04 September 2012 08:11 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I cannot find GMF version 3.0. can u give me any link where i can download?
Re: Change model on property change [message #907708 is a reply to message #907444] Tue, 04 September 2012 08:03 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I am using Helios service release 1....i trying to install GMF 3.0 but this version is not available. can u please give a link to download??
Re: Change model on property change [message #907709 is a reply to message #907444] Tue, 04 September 2012 08:11 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I cannot find GMF version 3.0. can u give me any link where i can download?
Re: Change model on property change [message #907732 is a reply to message #907444] Tue, 04 September 2012 08:11 Go to previous messageGo to next message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
I cannot find GMF version 3.0. can u give me any link where i can download?
Re: Change model on property change [message #908042 is a reply to message #907732] Tue, 04 September 2012 15:35 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

you can get it via the Juno release update site.

Ralph
Re: Change model on property change [message #908240 is a reply to message #908042] Wed, 05 September 2012 01:59 Go to previous message
Iqbal Hossain is currently offline Iqbal HossainFriend
Messages: 101
Registered: May 2011
Location: Bangladesh
Senior Member
yes i convert my project to juno and install gmf 3.0. can u tell me more about PINs??
Previous Topic:separate property box while double clicking the node
Next Topic:How to delete Views/GraphicalEditParts from diagram programmatically?
Goto Forum:
  


Current Time: Wed Oct 28 13:44:32 GMT 2020

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

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

Back to the top