Esempio n. 1
0
  public void paste(
      ListScreen source,
      Selection selection,
      CommandContext context,
      SelectionItem parentItem,
      NotificationResult notification) {

    CopyAndPaste dao = getDao(context.getScreen());
    Object parent = getParent(parentItem, context);

    for (SelectionItem item : selection) {
      dao.pasteCopy(item.getObject(), parent);
    }

    notification.setDefaultMessage("{0,choice,1#Item has|1<{0} items have} been copied.");
  }