Esempio n. 1
0
  public boolean canPaste(
      ListScreen source, Selection selection, CommandContext context, SelectionItem parentItem) {

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

    for (SelectionItem item : selection) {
      if (!dao.canPasteCopy(item.getObject(), parent)) {
        return false;
      }
    }
    return true;
  }