Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to create a new digram with a subset of my model's element
How to create a new digram with a subset of my model's element [message #559413] Thu, 16 September 2010 14:52 Go to next message
Fabricio Pellegrini is currently offline Fabricio PellegriniFriend
Messages: 36
Registered: July 2009
Member
Hi,


I need to provide in my application a way to initialize a diagrams with a subset of element selected by the user.
I wanna know if GMF already do it for me or I have to write the new diagram file by my self.

Thz
Re: How to create a new digram with a subset of my model's element [message #559438 is a reply to message #559413] Thu, 16 September 2010 15:33 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,

you can take a look in our code: http://www.bonitasoft.org/websvn/filedetails.php?repname=Bon ita+Open+Solution&path=/bonita-studio/trunk/plugins/org. bonitasoft.studio.properties/src/org/bonitasoft/studio/prope rties/sections/forms/FormsSection.java

look method createDiagram

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: How to create a new digram with a subset of my model's element [message #559489 is a reply to message #559438] Thu, 16 September 2010 19:26 Go to previous messageGo to next message
Fabricio Pellegrini is currently offline Fabricio PellegriniFriend
Messages: 36
Registered: July 2009
Member
Thanks for the reply Aurelien but I think this will not work for me.

Let me explain better my problem Very Happy


Actually I have one model resource that can have one or more diagrams, because my model is too complex to be modeled on a single diagram. So I can have diferent context diagrams.

I also able to user create a new element using my custom treeview, because of that some elements don't appear in any diagram.

I trying to find a way to create a diagram resource with the selected elements from my treeview.
Re: How to create a new digram with a subset of my model's element [message #559539 is a reply to message #559489] Fri, 17 September 2010 05:47 Go to previous messageGo to next message
Sven Krause is currently offline Sven KrauseFriend
Messages: 119
Registered: July 2009
Senior Member
Hi Fabricio,

shouldn't it be sufficient to create the resource containing the emf
model elements, opening the appropiated diagram editor and let the
canonical edit policy do the rest?

Sven

Am 16.09.2010 21:26, schrieb Fabricio Pellegrini:
> Thanks for the reply Aurelien but I think this will not work for me.
>
> Let me explain better my problem :d
>
> Actually I have one model resource that can have one or more diagrams,
> because my model is too complex to be modeled on a single diagram. So I
> can have diferent context diagrams.
>
> I also able to user create a new element using my custom treeview,
> because of that some elements don't appear in any diagram.
>
> I trying to find a way to create a diagram resource with the selected
> elements from my treeview.
Re: How to create a new digram with a subset of my model's element [message #559993 is a reply to message #559539] Mon, 20 September 2010 16:17 Go to previous message
Fabricio Pellegrini is currently offline Fabricio PellegriniFriend
Messages: 36
Registered: July 2009
Member
Sven Krause wrote on Fri, 17 September 2010 01:47
Hi Fabricio,

shouldn't it be sufficient to create the resource containing the emf
model elements, opening the appropiated diagram editor and let the
canonical edit policy do the rest?

Sven

Am 16.09.2010 21:26, schrieb Fabricio Pellegrini:
> Thanks for the reply Aurelien but I think this will not work for me.
>
> Let me explain better my problem Very Happy
>
> Actually I have one model resource that can have one or more diagrams,
> because my model is too complex to be modeled on a single diagram. So I
> can have diferent context diagrams.
>
> I also able to user create a new element using my custom treeview,
> because of that some elements don't appear in any diagram.
>
> I trying to find a way to create a diagram resource with the selected
> elements from my treeview.



Not in my case, because I dont want to have more then one resource file. I need to have one single model. In previous version I did as you said, but now we have a lot of problems to make one consistent model from more than one resource file.


As I sad before, we actually work with only one resource file to many diagram files.

Every things works fine, but I was searching for how i could add an existing element of the model on the new diagram when the synchronized option is setted to false.

I think I will need to create a workaround to it Confused

Thanks again for your atention
Previous Topic:ExecutionException
Next Topic:how to get EditPart from model element
Goto Forum:
  


Current Time: Thu Apr 25 13:49:26 GMT 2024

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

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

Back to the top