Border Item to be added wherever user clicks [message #211438] |
Tue, 18 November 2008 07:58 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02600 seconds