Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Copy Location
Copy Location [message #222411] Mon, 04 September 2006 14:47
Eclipse UserFriend
Originally posted by:

I wanna to copy and paste Objects in my editor, only one thing is
Incorrect: How can I discover Where the mouse was clicked to paste the
element in the correct location?

I'm using the Logic code:

protected Point getPasteLocation(GraphicalEditPart container) {
Point result = new Point(10, 10);
IFigure fig = container.getContentPane();
result.translate(fig.getClientArea(Rectangle.SINGLETON).getL ocation());
return result;

However always return the same point... =(

PS: I'm using copy and paste only with the mouse...

Other Thing, if I use one keyboard to copy, Can I know The difference?
Previous Topic:Problem with Display Property of Ruler and Guide in PropertyView
Next Topic:Refresh Label of a Shape (Extended ShapeExample)
Goto Forum:

Current Time: Fri Oct 09 01:37:23 GMT 2015

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

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