Skip to content

Commit 5b9b2a1

Browse files
pfalconbuchen
authored andcommitted
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.
1 parent 7dfa937 commit 5b9b2a1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/EventListWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected Composite createItemControl(Composite parent, EventItem item)
125125

126126
Label lblType = createLabel(composite, Values.Date.format(item.event.getDate()) + ": " + type); //$NON-NLS-1$
127127
lblType.setData(UIConstants.CSS.CLASS_NAME, UIConstants.CSS.HEADING2);
128-
Label name = createLabel(composite, item.getSecurity().getName());
128+
Label name = createLabel(composite, item.getSecurity().getName(getClient().getSecurityNameConfig()));
129129

130130
composite.addMouseListener(mouseUpAdapter);
131131
name.addMouseListener(mouseUpAdapter);

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/FollowUpWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ protected Composite createItemControl(Composite parent, FollowUpItem item)
131131
Label logo = createLabel(composite,
132132
LogoManager.instance().getDefaultColumnImage(item.getSecurity(), getClient().getSettings()));
133133

134-
Label name = createLabel(composite, item.getSecurity().getName());
134+
Label name = createLabel(composite, item.getSecurity().getName(getClient().getSecurityNameConfig()));
135135

136136
Label date = createLabel(composite, item.type.getName() + ": " + Values.Date.format(item.date)); //$NON-NLS-1$
137137

name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/dashboard/lists/LimitExceededWidget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ protected Composite createItemControl(Composite parent, LimitItem item)
102102
Label logo = createLabel(composite,
103103
LogoManager.instance().getDefaultColumnImage(item.getSecurity(), getClient().getSettings()));
104104

105-
Label name = createLabel(composite, item.getSecurity().getName());
105+
Label name = createLabel(composite, item.getSecurity().getName(getClient().getSecurityNameConfig()));
106106

107107
ColoredLabel price = new ColoredLabel(composite, SWT.RIGHT);
108108

0 commit comments

Comments
 (0)