pasteRefItem.addActionListener(
new ActionListener() {
public void actionPerformed(ActionEvent event) {
CurveIterator selection = (CurveIterator) get("clipboard");
RegionManager regions = (RegionManager) get("regions");
regions.shareShapes(selection, false);
}
}
);
if (Platform.getType() != Platform.MacOSX) {
// On the Mac, the "Preferences" item lies under the app menu.