Skip to content

Commit

Permalink
Fixed non-externalized strings warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
buchen committed Jan 15, 2017
1 parent c66244d commit 33f03cf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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) //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,7 @@ private void addTaxoptimisationTransaction()
}));
}

@SuppressWarnings("nls")
private void addTaxReturnBlock(DocumentType type)
{

Expand Down

0 comments on commit 33f03cf

Please sign in to comment.