Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Creation of three nodes with a unique tool in a concrete location
icon5.gif  Creation of three nodes with a unique tool in a concrete location [message #659267] Fri, 11 March 2011 17:55
Aintzane  is currently offline Aintzane Friend
Messages: 10
Registered: March 2011
Junior Member
Hi,

In my ecore model I have three classes. SiS is the parent class that is composed by one or zero InPort and one or zero OutPort. For each of these classes I've defined a node with their corresponding three creation tools.

For the creation of SiS node I've installed a new edit policy that creates the node with a concrete size and in a concrete location. The other nodes are affixed to their parent, one in each side. For creating them in a concrete location I've added structural features values in the createInPort and createOutPort methods of the ServicegraphViewProvider class. All this works fine. Smile

The next step consists on the creation of the three nodes using the SiS creation tool, but maintaining also the other two creation tools because input and output ports can be deleted and added. I can do this adding the new elements in the method doExecuteWithResult of the SiSCreateCommand class. The problem is that ports are not created in the correct location. Shocked

I've tried adding a new edit policy similar to the SiS's one but in this case the ports can't be selected and therefore can't be deleted. What's the problem? Is there any way of creating the three nodes in a concrete location like I am doing using each creation tool separately?


Thanks in advance,

Aintzane
Previous Topic:Change title position in the Palette
Next Topic:Adding children, to a nested rectangle.
Goto Forum:
  


Current Time: Wed Dec 11 19:13:31 GMT 2024

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

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

Back to the top