/*
* first copy things over and if that works, delete the old ones
*/
IToolContext toolContext = ApplicationGIS.createContext(ApplicationGIS.getActiveMap());
try {
CompositeCommand compositeCommand = new CompositeCommand(copyOverList);
toolContext.sendSyncCommand(compositeCommand);
} catch (Exception e) {
showMessage(display,
Messages.getString("OperationUtils_error"), Messages.getString("OperationUtils_copyproblem"), MSGTYPE.ERROR); //$NON-NLS-1$ //$NON-NLS-2$
return;
}
try {
CompositeCommand compositeCommand = new CompositeCommand(deleteOldList);
toolContext.sendSyncCommand(compositeCommand);
showMessage(
display,
Messages.getString("OperationUtils_info"), MessageFormat.format(Messages.getString("OperationUtils_movedinfo"), count), MSGTYPE.WARNING); //$NON-NLS-1$ //$NON-NLS-2$
} catch (Exception e) {