Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » automaticallly adding figure
automaticallly adding figure [message #646301] Thu, 23 December 2010 09:15 Go to next message
Elhamlaoui Mahmoud is currently offline Elhamlaoui MahmoudFriend
Messages: 268
Registered: March 2010
Senior Member
Hi,

is there a way so i could add automatically a figure inside another one, so when i create a figure A (a compartment) it will automatically add a figure B.

thanks a lot
Re: automaticallly adding figure [message #646316 is a reply to message #646301] Thu, 23 December 2010 10:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marius.groeger.googlemail.com

On 23.12.2010 10:15, Elhamlaoui Mahmoud wrote:
> Hi,
> is there a way so i could add automatically a figure inside another one,
> so when i create a figure A (a compartment) it will automatically add a
> figure B.

Do you mean a) just figures or b) actual semantic objects with their
editpart + figure?

a) define them in .gmfgraph

b) use Feature Seq Initializers in .gmfmap

Regards
Marius
Re: automaticallly adding figure [message #646443 is a reply to message #646316] Fri, 24 December 2010 10:11 Go to previous messageGo to next message
Elhamlaoui Mahmoud is currently offline Elhamlaoui MahmoudFriend
Messages: 268
Registered: March 2010
Senior Member
Hi marius,


what i mean is the actual semantic objects, i try to use the feature seq Intializers but i didnt get it work, is there any link explaining this issue?

thanks again
Mahmoud
Re: automaticallly adding figure [message #647033 is a reply to message #646443] Tue, 04 January 2011 08:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marius.groeger.googlemail.com

On 24.12.2010 11:11, Elhamlaoui Mahmoud wrote:
> what i mean is the actual semantic objects, i try to use the feature seq
> Intializers but i didnt get it work, is there any link explaining this
> issue?

http://wiki.eclipse.org/GMF_Tutorial_Part_2#Feature_Initiali zers might
help. With F/I you definitely can create semantic objects.

Regards
Marius
Re: automaticallly adding figure [message #651941 is a reply to message #646301] Wed, 02 February 2011 07:36 Go to previous message
Abhijit Gurav is currently offline Abhijit GuravFriend
Messages: 25
Registered: November 2010
Junior Member
Hi Elhamlaoui Mahmoud,

You can use AbstractEditHelperAdvice class, create class extending this and In that override getAfterConfigureCommand, using AddCommand and SetCommand you can achieve the desire result.

Also you need to make entry in plugin.xml, for extension point ,
1) org.eclipse.gmf.runtime.emf.type.core.elementTypes"
2) org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings


Regards,
-AG
Previous Topic:OCL - Link Constraint
Next Topic:Model Validation
Goto Forum:
  


Current Time: Tue Apr 23 11:55:04 GMT 2024

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

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

Back to the top