diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/columns/AttributeColumn.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/columns/AttributeColumn.java index 7d007cda7b..4ce57ddebf 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/columns/AttributeColumn.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/columns/AttributeColumn.java @@ -29,6 +29,7 @@ import name.abuchen.portfolio.model.LimitPriceSettings; import name.abuchen.portfolio.model.Security; import name.abuchen.portfolio.model.SecurityPrice; +import name.abuchen.portfolio.money.Values; import name.abuchen.portfolio.ui.Images; import name.abuchen.portfolio.ui.Messages; import name.abuchen.portfolio.ui.util.Colors; @@ -446,6 +447,17 @@ public String getText(Object element) LocalDate value = (LocalDate) attributable.getAttributes().get(attribute); return value == null ? null : String.valueOf(ChronoUnit.DAYS.between(value, LocalDate.now())); } + + @Override + public String getToolTipText(Object element) + { + Attributable attributable = Adaptor.adapt(Attributable.class, element); + if (attributable == null) + return null; + + LocalDate value = (LocalDate) attributable.getAttributes().get(attribute); + return value == null ? null : Values.Date.format(value); + } }); column.setVisible(false);