public class ShareAction extends AbstractAction {
@Override
public void execute() {
AppLauncher appLauncher = RWT.getClient().getService( AppLauncher.class );
if( appLauncher != null ) {
Book book = getCurrentPageData().get( BOOK_ITEM, Book.class );
String body = format( "Check out the book \"{0}\".", book.getTitle() );
MailOptions launchOptions = new MailOptions( "user@mail.com", body );
appLauncher.open( launchOptions );
}
}