You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by ah...@apache.org on 2023/09/15 14:57:12 UTC

[causeway] branch 3578-plurals.in.table.cells updated: CAUSEWAY-3578: just cleaning up a misnomer

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch 3578-plurals.in.table.cells
in repository https://gitbox.apache.org/repos/asf/causeway.git


The following commit(s) were added to refs/heads/3578-plurals.in.table.cells by this push:
     new 376821f4db CAUSEWAY-3578: just cleaning up a misnomer
376821f4db is described below

commit 376821f4dbd76cbd75d01915fb4b7c45b13bb28c
Author: Andi Huber <ah...@apache.org>
AuthorDate: Fri Sep 15 16:57:07 2023 +0200

    CAUSEWAY-3578: just cleaning up a misnomer
---
 .../ajaxtable/CollectionContentsAsAjaxTablePanel.java          | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/collectioncontents/ajaxtable/CollectionContentsAsAjaxTablePanel.java b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/collectioncontents/ajaxtable/CollectionContentsAsAjaxTablePanel.java
index 9a4c1e860b..af239ac898 100644
--- a/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/collectioncontents/ajaxtable/CollectionContentsAsAjaxTablePanel.java
+++ b/viewers/wicket/ui/src/main/java/org/apache/causeway/viewer/wicket/ui/components/collectioncontents/ajaxtable/CollectionContentsAsAjaxTablePanel.java
@@ -163,12 +163,12 @@ implements CollectionCountProvider {
         elementTypeSpec.streamAssociationsForColumnRendering(memberIdentifier, parentObject)
         .map(ObjectAssociation::getSpecialization)
         .map(spez->spez.fold(
-                this::createObjectAdapterPropertyColumnSingular,
-                this::createObjectAdapterPropertyColumnPlural))
+                this::createSingularColumn,
+                this::createPluralColumn))
         .forEach(columns::add);
     }
 
-    private SingularColumn createObjectAdapterPropertyColumnSingular(final OneToOneAssociation property) {
+    private SingularColumn createSingularColumn(final OneToOneAssociation property) {
         val collectionModel = getModel();
         final String parentTypeName = property.getDeclaringType().getLogicalTypeName();
 
@@ -182,7 +182,7 @@ implements CollectionCountProvider {
                 property.getCanonicalDescription());
     }
 
-    private PluralColumn createObjectAdapterPropertyColumnPlural(final OneToManyAssociation collection) {
+    private PluralColumn createPluralColumn(final OneToManyAssociation collection) {
         val collectionModel = getModel();
         final String parentTypeName = collection.getDeclaringType().getLogicalTypeName();
 
@@ -194,7 +194,7 @@ implements CollectionCountProvider {
                 collection.getId(),
                 parentTypeName,
                 collection.getCanonicalDescription(),
-                // can hook up with global config later
+                // future work: can hook up with global config
                 RenderOptions.builder().build());
     }