Package org.eclipse.sapphire.samples.contacts

Examples of org.eclipse.sapphire.samples.contacts.SendContactOp


    }

    @Override
    protected void compute( final Set<String> values )
    {
        final SendContactOp op = context( SendContactOp.class );
        final Contact contact = op.getContact().content();
       
        if( contact != null )
        {
            for( Contact c : contact.nearest( ContactRepository.class ).getContacts() )
            {
View Full Code Here


    @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;
    }
View Full Code Here

    }

    @Override
    protected String compute()
    {
        final SendContactOp op = context( SendContactOp.class );
        final Contact contact = op.getContact().content();
        final StringBuilder buf = new StringBuilder();
       
        buf.append( "<html><body>\n" );
       
        if( contact != null )
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.samples.contacts.SendContactOp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.