@Override
  public boolean onContextItemSelected(MenuItem item) {
    AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
    Product selectedProduct = (Product) productsListView.getAdapter().getItem(info.position);

    switch (item.getItemId()) {
      case R.string.lpContextMenuShowProduct:
        showProduct(selectedProduct);
        break;
      case R.string.lpContextMenuEditProduct:
        editProduct(selectedProduct);
        break;
      case R.string.lpContextMenuDeleteFromDB:
        selectedProduct.delete(true);
        break;
    }

    updateView();
    return true;
  }