column.setLabelProvider(new ColumnLabelProvider()
{
@Override
public String getText(Object e)
{
InvestmentPlan plan = (InvestmentPlan) e;
return plan.getAccount() != null ? plan.getAccount().getName() : Messages.InvestmentPlanOptionDelivery;
}
@Override
public Image getImage(Object e)
{
InvestmentPlan plan = (InvestmentPlan) e;
return plan.getAccount() != null ? PortfolioPlugin.image(PortfolioPlugin.IMG_ACCOUNT) : null;
}
});
ColumnViewerSorter.create(Account.class, "name").attachTo(column); //$NON-NLS-1$
List<Account> accounts = new ArrayList<Account>();
accounts.add(NewPlanDialog.DELIVERY);