manager.add(new Action(Messages.SecurityMenuTransfer)
{
@Override
public void run()
{
SecurityTransferDialog dialog = new SecurityTransferDialog(owner.getActiveShell(), owner
.getClient(), portfolio);
if (dialog.open() == DividendsDialog.OK)
{
owner.markDirty();
owner.notifyModelUpdated();
}
}
});
}
if (portfolio != null)
{
manager.add(new Separator());
manager.add(new Action(PortfolioTransaction.Type.DELIVERY_INBOUND.toString() + "...") //$NON-NLS-1$
{
@Override
public void run()
{
SecurityDeliveryDialog dialog = new SecurityDeliveryDialog(owner.getActiveShell(), owner
.getClient(), portfolio, PortfolioTransaction.Type.DELIVERY_INBOUND);
if (dialog.open() == SecurityDeliveryDialog.OK)
{
owner.markDirty();
owner.notifyModelUpdated();
}
}
});
manager.add(new Action(PortfolioTransaction.Type.DELIVERY_OUTBOUND.toString() + "...") //$NON-NLS-1$
{
@Override
public void run()
{
SecurityDeliveryDialog dialog = new SecurityDeliveryDialog(owner.getActiveShell(), owner
.getClient(), portfolio, PortfolioTransaction.Type.DELIVERY_OUTBOUND);
if (dialog.open() == SecurityDeliveryDialog.OK)
{
owner.markDirty();
owner.notifyModelUpdated();
}
}