<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ojwiki.soldin.de/index.php?action=history&amp;feed=atom&amp;title=Beanshell%3AChain_Copy%2FPaste%2FMove_using_PlugIns_and_CursorTool</id>
	<title>Beanshell:Chain Copy/Paste/Move using PlugIns and CursorTool - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ojwiki.soldin.de/index.php?action=history&amp;feed=atom&amp;title=Beanshell%3AChain_Copy%2FPaste%2FMove_using_PlugIns_and_CursorTool"/>
	<link rel="alternate" type="text/html" href="https://ojwiki.soldin.de/index.php?title=Beanshell:Chain_Copy/Paste/Move_using_PlugIns_and_CursorTool&amp;action=history"/>
	<updated>2026-06-21T07:49:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://ojwiki.soldin.de/index.php?title=Beanshell:Chain_Copy/Paste/Move_using_PlugIns_and_CursorTool&amp;diff=1022&amp;oldid=prev</id>
		<title>Michaudm: Created page with &#039;Here is how you can use existing PlugIns or CursorTools to chain actions in a simple script  &lt;pre&gt; // Import packages (you can also call classes directly using their full name) i…&#039;</title>
		<link rel="alternate" type="text/html" href="https://ojwiki.soldin.de/index.php?title=Beanshell:Chain_Copy/Paste/Move_using_PlugIns_and_CursorTool&amp;diff=1022&amp;oldid=prev"/>
		<updated>2011-05-13T05:53:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;#039;Here is how you can use existing PlugIns or CursorTools to chain actions in a simple script  &amp;lt;pre&amp;gt; // Import packages (you can also call classes directly using their full name) i…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Here is how you can use existing PlugIns or CursorTools to chain actions in a simple script&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// Import packages (you can also call classes directly using their full name)&lt;br /&gt;
import com.vividsolutions.jump.workbench.ui.plugin.clipboard.*;&lt;br /&gt;
import com.vividsolutions.jump.workbench.ui.cursortool.editing.*;&lt;br /&gt;
&lt;br /&gt;
// Get PlugIn context from WorkbenchContext&lt;br /&gt;
context = wc.createPlugInContext();&lt;br /&gt;
&lt;br /&gt;
// Execute CopySelectedItemsPlugIn&lt;br /&gt;
new CopySelectedItemsPlugIn().execute(context);&lt;br /&gt;
&lt;br /&gt;
// Notify the system that you&amp;#039;re starting an undoable action&lt;br /&gt;
// (needed by the PasteItemsPlugIn)&lt;br /&gt;
wc.layerManager.undoableEditReceiver.startReceiving();&lt;br /&gt;
&lt;br /&gt;
// Execute PasteItemsPlugIn&lt;br /&gt;
new PasteItemsPlugIn().execute(context);&lt;br /&gt;
&lt;br /&gt;
// Set a new MoveSelectedItemsTool as the current CursorTool&lt;br /&gt;
// of the layerViewPanel&lt;br /&gt;
wc.layerViewPanel.setCurrentCursorTool(new MoveSelectedItemsTool(context.checkFactory));&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michaudm</name></author>
	</entry>
</feed>