@Override
protected Object run( final Presentation context )
{
final Contact contact = (Contact) getModelElement();
final SendContactOp operation = SendContactOp.TYPE.instantiate();
try
{
operation.setContact( contact );
final SapphireWizard<SendContactOp> wizard = new SapphireWizard<SendContactOp>
(
operation,
DefinitionLoader.context( ContactRepository.class ).sdef( "ContactRepositoryEditor" ).wizard( "SendContactWizard" )
);
final WizardDialog dialog = new WizardDialog( ( (FormComponentPresentation) context ).shell(), wizard );
dialog.open();
}
finally
{
operation.dispose();
}
return null;
}