Skip to content

Commit

Permalink
Security list widgets: Use security name config
Browse files Browse the repository at this point in the history
I.e., if user configured a security name prefix like ticker symbol, ISIN,
etc., show it like that.
  • Loading branch information
pfalcon authored and buchen committed Jan 29, 2025
1 parent 7dfa937 commit 5b9b2a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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$

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5b9b2a1

Please sign in to comment.