Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Generate GMF diagram editor dynamically with diagram
Generate GMF diagram editor dynamically with diagram [message #496842] Wed, 11 November 2009 14:27 Go to next message
Solution Tweak is currently offline Solution TweakFriend
Messages: 15
Registered: November 2009
Junior Member
Hi

I need help in generating GMF diagram editor dynamically with diagram.

I have the event trigger ready and also i am able to open the diagram editor with palette but without diagrams instantly.

Below is the requirement for which i am looking for a solution:

1) I need to parse the domain specific elements from an xml and also from the domain model(ecore), run rules from the rules container and generate dynamically GMF diagram editor displaying the diagrams with relationships.

Questions are as follows:

1) How do i set a rules container in GMF ?

2) How do i get the GMF diagram editor dynamically displaying the diagrams with relationships based on the rules ?

I appreciate your help and support in advance.

Thanks
Need Solution for a Solution Tweaker Rolling Eyes
Re: Generate GMF diagram editor dynamically with diagram [message #498483 is a reply to message #496842] Tue, 17 November 2009 08:21 Go to previous messageGo to next message
Alex Shatalin is currently offline Alex ShatalinFriend
Messages: 141
Registered: July 2009
Senior Member
Hello Solution,

> 1) How do i set a rules container in GMF ?
It's up to you - there is not rules container in GMF.

> 2) How do i get the GMF diagram editor dynamically displaying the
> diagrams with relationships based on the rules ?
Just create .gmfmap and other necessary gmf files, run generator headlessly,
jenerate plugin, jar it and install as a bundle into currently running eclipse.
Then you cn open newly generated diagram editor.

-----------------
Alex Shatalin
Re: Generate GMF diagram editor dynamically with diagram [message #499231 is a reply to message #498483] Fri, 20 November 2009 14:03 Go to previous messageGo to next message
Solution Tweak is currently offline Solution TweakFriend
Messages: 15
Registered: November 2009
Junior Member
Hi Alex

Thanks for your reply.

Solution Tweak --> 1) How do i set a rules container in GMF ?
Alex -->It's up to you - there is not rules container in GMF.

Solution Tweak --> Is there a way to construct domain specific rules either in EMF or GMF ?


Solution Tweak --> 2) How do i get the GMF diagram editor dynamically displaying the diagrams with relationships based on the rules ?
Alex -->Just create .gmfmap and other necessary gmf files, run generator headlessly,
jenerate plugin, jar it and install as a bundle into currently running eclipse.
Then you cn open newly generated diagram editor.

Solution Tweak --> Generating .gmfmap etc is done(it's static). I am looking for pulling domain elements from Ecore and gnerating diagrams based on a event trigger. Is there a way i can achieve this ?

Thanking you again for the earlier reply.

Cheers
Solution Tweak
Re: Generate GMF diagram editor dynamically with diagram [message #500778 is a reply to message #499231] Sat, 28 November 2009 15:57 Go to previous messageGo to next message
Alex Shatalin is currently offline Alex ShatalinFriend
Messages: 141
Registered: July 2009
Senior Member
Hello Solution,

> Solution Tweak --> Generating .gmfmap etc is done(it's static). I am
> looking for pulling domain elements from Ecore and gnerating diagrams
> based on a event trigger. Is there a way i can achieve this ?
If you'd like to create new instance of the diagram based on an existing
..domain file then try using Init ... DiagramFileAction generated by GMF and
availabel in popup menu.

-----------------
Alex Shatalin
Re: Generate GMF diagram editor dynamically with diagram [message #500933 is a reply to message #500778] Mon, 30 November 2009 11:08 Go to previous message
Solution Tweak is currently offline Solution TweakFriend
Messages: 15
Registered: November 2009
Junior Member
Hi Alex

I have generated my diagram editor using Init....DiagramFileAction already as mentioned in earlier replies. I am looking for generating a diagram editor with diagrams dynamically. What i meant is on click of a button should trigger a diagram editor with diagrams in it, right now i am able to invoke diagram editor without diagrams, how can i achieve diagram editor with diagrams dynamically by reading Domain file(Ecore)?

Thanks
Solution Tweak
Previous Topic:disable save
Next Topic:How to create a node from an EObject
Goto Forum:
  


Current Time: Mon Apr 19 10:26:20 GMT 2021

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

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

Back to the top