From e81ba17e4fee895f7aafc8615c66ab3cc4db0295 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 16 Jan 2025 23:58:08 +0700 Subject: [PATCH] Security list widgets: Use security name config I.e., if user configured a security name prefix like ticker symbol, ISIN, etc., show it like that. --- .../portfolio/ui/views/dashboard/lists/EventListWidget.java | 2 +- .../portfolio/ui/views/dashboard/lists/FollowUpWidget.java | 2 +- .../portfolio/ui/views/dashboard/lists/LimitExceededWidget.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/EventListWidget.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/EventListWidget.java index 63c891a1dc..b7a85253dd 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/EventListWidget.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/EventListWidget.java @@ -125,7 +125,7 @@ protected Composite createItemControl(Composite parent, EventItem item) Label lblType = createLabel(composite, Values.Date.format(item.event.getDate()) + ": " + type); //$NON-NLS-1$ lblType.setData(UIConstants.CSS.CLASS_NAME, UIConstants.CSS.HEADING2); - Label name = createLabel(composite, item.getSecurity().getName()); + Label name = createLabel(composite, item.getSecurity().getName(getClient().getSecurityNameConfig())); composite.addMouseListener(mouseUpAdapter); name.addMouseListener(mouseUpAdapter); diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/FollowUpWidget.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/FollowUpWidget.java index e413b0ce08..8557c281f5 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/FollowUpWidget.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/FollowUpWidget.java @@ -131,7 +131,7 @@ protected Composite createItemControl(Composite parent, FollowUpItem item) Label logo = createLabel(composite, LogoManager.instance().getDefaultColumnImage(item.getSecurity(), getClient().getSettings())); - Label name = createLabel(composite, item.getSecurity().getName()); + Label name = createLabel(composite, item.getSecurity().getName(getClient().getSecurityNameConfig())); Label date = createLabel(composite, item.type.getName() + ": " + Values.Date.format(item.date)); //$NON-NLS-1$ diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/LimitExceededWidget.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/LimitExceededWidget.java index 5e17e7e6d6..41b92867a8 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/LimitExceededWidget.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/LimitExceededWidget.java @@ -102,7 +102,7 @@ protected Composite createItemControl(Composite parent, LimitItem item) Label logo = createLabel(composite, LogoManager.instance().getDefaultColumnImage(item.getSecurity(), getClient().getSettings())); - Label name = createLabel(composite, item.getSecurity().getName()); + Label name = createLabel(composite, item.getSecurity().getName(getClient().getSecurityNameConfig())); ColoredLabel price = new ColoredLabel(composite, SWT.RIGHT);