// do import!!
if (comp instanceof PresetContextTable) {
final PresetContextTable pct = (PresetContextTable) comp;
int row = pct.getSelectedRow();
try {
ContextPresetSelection ips = ((ContextPresetSelection) t.getTransferData(PresetContextTransferHandler.presetContextFlavor));
final ReadablePreset[] sourceReadablePresets = ips.getReadablePresets();
final Object[] destRowObjects = new Object[sourceReadablePresets.length];
for (int i = 0,j = sourceReadablePresets.length; i < j; i++)
destRowObjects[i] = pct.getValueAt(row + i, 0);
/*Arrays.sort(sourceReadablePresets);
ArrayList destPresetObjs = new ArrayList();
for (int i = 0,j = sourceReadablePresets.length; i < j; i++) {
if (!(row + i < pct.getRowCount()))
break;
destPresetObjs.addDesktopElement(pct.getValueAt(row + i, 0));
}
final ReadablePreset[] dpos = new ReadablePreset[destPresetObjs.size()];
destPresetObjs.toArray(dpos);
*/
Integer[] destIndexes = new Integer[destRowObjects.length];
for (int i = 0; i < destIndexes.length; i++)
destIndexes[i] = ((ReadablePreset) destRowObjects[i]).getPresetNumber();
String confirmStr = PresetContextMacros.getOverwriteConfirmationString(((ReadablePreset) destRowObjects[0]).getPresetContext(), destIndexes);
int ok = JOptionPane.showConfirmDialog(ZoeosFrame.getInstance(), confirmStr, "Confirm Preset Bulk Copy", JOptionPane.YES_NO_OPTION);
if (ok == 0)
if (pct.getPresetContext() == ips.getPresetContext())
dropContextLocalPresets(destRowObjects, sourceReadablePresets, pct);
else
dropIsolatedPresets(ips, destRowObjects);
} catch (UnsupportedFlavorException e) {
e.printStackTrace();