Pasting JGoObjects


#1

I have an application with a JGoView and I have implemented actions to allow copying and pasting JGoObjects of this view. I have subclass of JGoView where I have overridden paste() method because I need to Know what JGoObjects have been pasted.
Does anybody know how to know what JGoObject have been pasted after method JGoView.paste() have finished?


#2

That was a fairly common question, so in version 4.1 we changed the default behavior of JGoView.paste() to select all the newly copied top-level objects.
So just loop over the view’s JGoSelection.


#3

Thanks for your quick reply.
That’s the idea that we had. But we wanted to know if exists an explicit method to get recently pasted elements. Maybe, this method could be an enhancement.