Hi Peppe,
Here is a 7 lines beanshell script to do copy/paste/move in one step :
import com.vividsolutions.jump.workbench.ui.plugin.clipboard.*;
import com.vividsolutions.jump.workbench.ui.cursortool.editing.*;
context = wc.createPlugInContext();
new CopySelectedItemsPlugIn().execute(context);
wc.layerManager.undoableEditReceiver.startReceiving();
new PasteItemsPlugIn().execute(context);
wc.layerViewPanel.setCurrentCursorTool(new
MoveSelectedItemsTool(context.checkFactory));
Hope it helps (I learnt a lot to achieve it)
Michaël
Le 12/05/2011 12:33, Giuseppe Aruta a écrit :
Hi Landon,
thanks for your help. I am travelling for job : I will write in
details after 26th of May.
Regards
Peppe
*Da:* Sunburned Surveyor <sunburned.surve...@gmail.com>
*A:* OpenJump develop and use <jump-pilot-devel@lists.sourceforge.net>
*Inviato:* Sabato 7 Maggio 2011 4:36
*Oggetto:* Re: [JPP-Devel] converting MoveSelectedItemsTool to PlugIn
Peppe,Can you provide me a list of user actions for the plug-in you
are trying to create?Then maybe I can offer some suggestions for the
implementation.Landon
On Wed, May 4, 2011 at 3:17 AM, Giuseppe Aruta
<giuseppe_ar...@yahoo.it <mailto:giuseppe_ar...@yahoo.it>> wrote:
Or I can invert my problem:
How can I call CopyItemPlugIn and PasteItem PlugIn inside
MoveSelectedItemTool to have a Clone effect.
Peppe
--- *Mer 4/5/11, Giuseppe Aruta /<giuseppe_ar...@yahoo.it
<mailto:giuseppe_ar...@yahoo.it>>/* ha scritto:
Da: Giuseppe Aruta <giuseppe_ar...@yahoo.it
<mailto:giuseppe_ar...@yahoo.it>>
Oggetto: Re: [JPP-Devel] converting MoveSelectedItemsTool to
PlugInA: "OpenJump develop and use"
<jump-pilot-devel@lists.sourceforge.net
<mailto:jump-pilot-devel@lists.sourceforge.net>>
Data: Mercoledì 4 maggio 2011, 08:46
Hi Michael,
I was working around CAD like tools.
A MacroPlugin like
CopyPlugIn
PastePlugIn
MoveSelectedItem(PlugIn)
will define a clone item tool.
Peppe
--- *Mar 3/5/11, Michaël Michaud /<michael.mich...@free.fr
<mailto:michael.mich...@free.fr>>/* ha scritto:
Da: Michaël Michaud <michael.mich...@free.fr
<mailto:michael.mich...@free.fr>>
Oggetto: Re: [JPP-Devel] converting MoveSelectedItemsTool
to PlugIn
A: "OpenJump develop and use"
<jump-pilot-devel@lists.sourceforge.net
<mailto:jump-pilot-devel@lists.sourceforge.net>>
Data: Martedì 3 maggio 2011, 21:23
Hi Peppe,A CursorTool is basically a MouseListener.If you
convert it to a plugin, how will define the translation
parameters ?I think it is possible to re-use a part
CursorTool's code for a PlugIn, but I can't see a generic
way to convert from one to another.Can you give more
details about your use-case ?MichaëlLe 03/05/2011 11:04,
Giuseppe Aruta a écrit :
Hi all,
is there a general way to convert a Tool into a PlugIn? I
want to use MoveSelectedItemsTool into a MacroPlugIn.
regards
Peppe
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
-----Segue allegato-----
------------------------------------------------------------------------------WhatsUp
Gold - Download Free Network Management SoftwareThe most
intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest
initial acquisition cost and overall TCO of any competing
solution.http://p.sf.net/sfu/whatsupgold-sd
-----Segue allegato-----
_______________________________________________Jump-pilot-devel
mailing
listJump-pilot-devel@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
-----Segue allegato-----
------------------------------------------------------------------------------WhatsUp
Gold - Download Free Network Management SoftwareThe most
intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing
solution.http://p.sf.net/sfu/whatsupgold-sd
-----Segue allegato-----
_______________________________________________Jump-pilot-devel mailing
listjump-pilot-de...@lists.sourceforge.net
<http://mc/compose?to=Jump-pilot-devel@lists.sourceforge.net>https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
<mailto:Jump-pilot-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------WhatsUp
Gold - Download Free Network Management SoftwareThe most intuitive,
comprehensive, and cost-effective network management toolset available
today. Delivers lowest initial acquisition cost and overall TCO of
any competing
solution.http://p.sf.net/sfu/whatsupgold-sd_______________________________________________Jump-pilot-devel
mailing listjump-pilot-de...@lists.sourceforge.net
<mailto:Jump-pilot-devel@lists.sourceforge.net>https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel