Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Ports/anchors with Affixed Parent Side
Ports/anchors with Affixed Parent Side [message #177261] Fri, 14 March 2008 08:33 Go to next message
Eclipse UserFriend
Originally posted by: novak.igor.gmail.com

Hi!

I also need the same help defining ports as Davide Rossi posted with
subject "define anchors (should this be a FAQ?)" on 11.3.2008.

I've been struggling to define behaviour with property Affixed Parent
Side, but with no success.

Does anybody has an example of this behaviour working (in .gmfgraph model)
from gmf generated code?
Or, do I need to set this property and then add some extra manual code?

I also do not understand "parent/child relationship between the main
diagram elements and their ports - anchor points in the graph model" as
Davide Rossi stated.

Thanks in advance,
Igor Novak
Re: Ports/anchors with Affixed Parent Side [message #177572 is a reply to message #177261] Mon, 17 March 2008 05:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: amsurana.in.ibm.com

This is a multipart message in MIME format.
--=_alternative 001C54906525740F_=
Content-Type: text/plain; charset="US-ASCII"

Hi
I have come across your problem of placing PORTS affixed on PARENTS side.
can explain with a simple example.

Say u have a component and want Port affixed on its side.
You can follw this procedure to do this task.

Add Port in GMF Graph.
'When creating "Node" for Port there is a property called "Affixed Parent
Side". Set this property from list of choices as required.

Next add this Port as CHILD REFERENCE to the Component in GMF Mapping.
Hierarchy goes like this
Top Node Reference -> Component
Chiild Reference -> Port
(Note: Please do not add this Port into any compartment mapping of the
Component.)

Hope this was your problem.


Cheers,
Amit
--=_alternative 001C54906525740F_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi </font>
<br><font size=2 face="sans-serif">I have come across your problem of placing
PORTS affixed on PARENTS side. </font>
<br><font size=2 face="sans-serif">can explain with a simple example. </font>
<br>
<br><font size=2 face="sans-serif">Say u have a component and want Port
affixed on its side. </font>
<br><font size=2 face="sans-serif">You can follw this procedure to do this
task. </font>
<br>
<br><font size=2 face="sans-serif">Add Port in GMF Graph. </font>
<br><font size=2 face="sans-serif">'When creating &quot;Node&quot; for
Port there is a property called &quot;Affixed Parent Side&quot;. Set this
property from list of choices as required. </font>
<br>
<br><font size=2 face="sans-serif">Next add this Port as CHILD REFERENCE
to the Component in GMF Mapping. </font>
<br><font size=2 face="sans-serif">Hierarchy goes like this </font>
<br><font size=2 face="sans-serif">Top Node Reference -&gt; Component </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;Chiild Reference
-&gt; Port</font>
<br><font size=2 face="sans-serif">(Note: Please do not add this Port into
any compartment mapping of the Component.)</font>
<br>
<br><font size=2 face="sans-serif">Hope this was your problem. </font>
<br>
<br>
<br><font size=2 face="sans-serif">Cheers, </font>
<br><font size=2 face="sans-serif">Amit</font>
--=_alternative 001C54906525740F_=--
Re: Ports/anchors with Affixed Parent Side [message #547694 is a reply to message #177572] Mon, 19 July 2010 11:34 Go to previous message
Carlos  is currently offline Carlos Friend
Messages: 16
Registered: July 2009
Junior Member
Hi there,

I'm sorry to ask again about this matter, but I cannot find the solution to my concrete problem.

Igor, I'm setting AffixedParentSide property to the port node in the gmfgraph and then defining the child reference in the gmfmap, but the behavior I get is that, when I add the main element to the diagram, if I leave the cursor over that node, a pop up appears offering me the possibility of adding a port to the control. This is not what I'm looking for.

I want the port to appear already sticked to the element when I add the element to the diagram.

Is this possible?

Thanks!

Carlos
Previous Topic:Flow layout problem in a compartment
Next Topic:Use custom properties sheet
Goto Forum:
  


Current Time: Sat May 18 08:06:32 GMT 2024

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

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

Back to the top