Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Programatically adding nodes to the GMF diagram(Programatically adding nodes to the GMF diagram)
Programatically adding nodes to the GMF diagram [message #685905] Mon, 20 June 2011 15:50 Go to next message
SPRao  is currently offline SPRao Friend
Messages: 5
Registered: March 2011
Junior Member
I have been working on this topic since last week. I have a problem in adding nodes to the GMF Diagram.
I have a systemView which contains multiple systemBlocks and each systemBlock contains multiple parameters. My question is if i want to add the parameter along with the systemblock and systemview it is not possible. It gives me a write transaction error.

When i add only the systemView it is fine, but when I try to add a full nested block (systemview containing systemblock containing parameters) I get the error.

Are there any other tutorials other than the one in Eclipse website, I have already checked the tutorial of Custom Actions, but that is not what I want.

Can anyone help me with this !!!

Thanks and Regards,

Re: Programatically adding nodes to the GMF diagram [message #693299 is a reply to message #685905] Wed, 06 July 2011 08:26 Go to previous messageGo to next message
emil salageanu is currently offline emil salageanuFriend
Messages: 94
Registered: June 2010
Location: Nice, France
You need to make sure you use the command stack when you programatically add nodes. If you simply use setor add methods it will not work.
You need to do something like:

SetCommand cmd = SetCommand.create(.....) 

then something like:
Re: Programatically adding nodes to the GMF diagram [message #716360 is a reply to message #685905] Wed, 17 August 2011 07:18 Go to previous message
vinny503 Missing name is currently offline vinny503 Missing nameFriend
Messages: 156
Registered: August 2011
Senior Member

I am newbei to GMF...
If I want to add new parameters dynamically to the property window for a
specific node in gmf..How it can be done....
Please help me regarding this...I am stuck at this stage...

Previous Topic:Loading external resource
Next Topic:Block resize an element
Goto Forum:

Current Time: Thu Feb 25 19:37:43 GMT 2021

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

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

Back to the top