Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Border Item to be added wherever user clicks
Border Item to be added wherever user clicks [message #211438] Tue, 18 November 2008 12:58
Sandip is currently offline SandipFriend
Messages: 39
Registered: July 2009
Member
Hi,

I am about to add a Bordet Item to a rectangle node from Palette.

The position constant for this border item is made NONE, in the
addFixedChild() for the parent node editPart.

But, whenever its added, it sits on the left side of the node by default.

What is the best way to make the item get added on the side of the parent,
where user clicks?

1. I should not change Position Constant value, as it will restrict future
movement only to that side. I want it to be able to move on all sides.

2. I probably need to recognize somehow, the side of the parent on which
user clicked, and after addition, move the editpart to that location. In
this case, how to find which side he clicked, and whats the cursor
location?

~Sandip
Previous Topic:Central point for saving Model data
Next Topic:Change source folder target
Goto Forum:
  


Current Time: Fri Apr 26 19:14:13 GMT 2024

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

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

Back to the top