From 33f03cf9fd339140d765e7c62e58d2f53b3bb5e8 Mon Sep 17 00:00:00 2001 From: Andreas Buchen Date: Sun, 15 Jan 2017 12:47:15 +0100 Subject: [PATCH] Fixed non-externalized strings warnings --- .../portfolio/ui/views/AccountContextMenu.java | 12 ++++++------ .../abuchen/portfolio/ui/views/SecuritiesTable.java | 6 +++--- .../portfolio/ui/views/SecurityContextMenu.java | 6 +++--- .../datatransfer/pdf/FlatexPDFExtractor.java | 1 + 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/AccountContextMenu.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/AccountContextMenu.java index f12a2e49aa..92abeb805b 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/AccountContextMenu.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/AccountContextMenu.java @@ -2,6 +2,9 @@ import java.util.EnumSet; +import org.eclipse.jface.action.IMenuManager; +import org.eclipse.jface.action.Separator; + import name.abuchen.portfolio.model.Account; import name.abuchen.portfolio.model.AccountTransaction; import name.abuchen.portfolio.model.Portfolio; @@ -14,9 +17,6 @@ import name.abuchen.portfolio.ui.dialogs.transactions.OpenDialogAction; import name.abuchen.portfolio.ui.dialogs.transactions.SecurityTransactionDialog; -import org.eclipse.jface.action.IMenuManager; -import org.eclipse.jface.action.Separator; - public class AccountContextMenu { private AbstractFinanceView owner; @@ -73,21 +73,21 @@ public void menuAboutToShow(IMenuManager manager, final Account account, final S } } - new OpenDialogAction(owner, Messages.SecurityMenuBuy + "...") // + new OpenDialogAction(owner, Messages.SecurityMenuBuy + "...") //$NON-NLS-1$ .type(SecurityTransactionDialog.class) // .parameters(PortfolioTransaction.Type.BUY) // .with(portfolio[0]) // .with(security) // .addTo(manager); - new OpenDialogAction(owner, Messages.SecurityMenuSell + "...") // + new OpenDialogAction(owner, Messages.SecurityMenuSell + "...") //$NON-NLS-1$ .type(SecurityTransactionDialog.class) // .parameters(PortfolioTransaction.Type.SELL) // .with(portfolio[0]) // .with(security) // .addTo(manager); - new OpenDialogAction(owner, Messages.SecurityMenuDividends + "...") // + new OpenDialogAction(owner, Messages.SecurityMenuDividends + "...") //$NON-NLS-1$ .type(AccountTransactionDialog.class) // .parameters(AccountTransaction.Type.DIVIDENDS) // .with(account) // diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecuritiesTable.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecuritiesTable.java index a98b4fb1b7..6b52c9950a 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecuritiesTable.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecuritiesTable.java @@ -608,21 +608,21 @@ public void run() private void fillTransactionContextMenu(IMenuManager manager, Security security) { - new OpenDialogAction(view, Messages.SecurityMenuBuy + "...") // + new OpenDialogAction(view, Messages.SecurityMenuBuy + "...") //$NON-NLS-1$ .type(SecurityTransactionDialog.class) // .parameters(PortfolioTransaction.Type.BUY) // .with(security) // .onSuccess(d -> performFinish(security)) // .addTo(manager); - new OpenDialogAction(view, Messages.SecurityMenuSell + "...") // + new OpenDialogAction(view, Messages.SecurityMenuSell + "...") //$NON-NLS-1$ .type(SecurityTransactionDialog.class) // .parameters(PortfolioTransaction.Type.SELL) // .with(security) // .onSuccess(d -> performFinish(security)) // .addTo(manager); - new OpenDialogAction(view, Messages.SecurityMenuDividends + "...") // + new OpenDialogAction(view, Messages.SecurityMenuDividends + "...") //$NON-NLS-1$ .type(AccountTransactionDialog.class) // .parameters(AccountTransaction.Type.DIVIDENDS) // .with(security) // diff --git a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecurityContextMenu.java b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecurityContextMenu.java index 70d1ac039e..3838061ad1 100644 --- a/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecurityContextMenu.java +++ b/name.abuchen.portfolio.ui/src/name/abuchen/portfolio/ui/views/SecurityContextMenu.java @@ -46,21 +46,21 @@ public void menuAboutToShow(IMenuManager manager, final Security security, final return; } - new OpenDialogAction(owner, Messages.SecurityMenuBuy + "...") // + new OpenDialogAction(owner, Messages.SecurityMenuBuy + "...") //$NON-NLS-1$ .type(SecurityTransactionDialog.class) // .parameters(PortfolioTransaction.Type.BUY) // .with(portfolio) // .with(security) // .addTo(manager); - new OpenDialogAction(owner, Messages.SecurityMenuSell + "...") // + new OpenDialogAction(owner, Messages.SecurityMenuSell + "...") //$NON-NLS-1$ .type(SecurityTransactionDialog.class) // .parameters(PortfolioTransaction.Type.SELL) // .with(portfolio) // .with(security) // .addTo(manager); - new OpenDialogAction(owner, Messages.SecurityMenuDividends + "...") // + new OpenDialogAction(owner, Messages.SecurityMenuDividends + "...") //$NON-NLS-1$ .type(AccountTransactionDialog.class) // .parameters(AccountTransaction.Type.DIVIDENDS) // .with(portfolio != null ? portfolio.getReferenceAccount() : null) // diff --git a/name.abuchen.portfolio/src/name/abuchen/portfolio/datatransfer/pdf/FlatexPDFExtractor.java b/name.abuchen.portfolio/src/name/abuchen/portfolio/datatransfer/pdf/FlatexPDFExtractor.java index 87417e0c93..849e89e9b0 100644 --- a/name.abuchen.portfolio/src/name/abuchen/portfolio/datatransfer/pdf/FlatexPDFExtractor.java +++ b/name.abuchen.portfolio/src/name/abuchen/portfolio/datatransfer/pdf/FlatexPDFExtractor.java @@ -789,6 +789,7 @@ private void addTaxoptimisationTransaction() })); } + @SuppressWarnings("nls") private void addTaxReturnBlock(DocumentType type) {