Examples of IAttendee


Examples of org.eclipse.sapphire.samples.calendar.integrated.IAttendee

    @Override
    protected boolean computeEnablementState()
    {
        if( super.computeEnablementState() == true )
        {
            final IAttendee attendee = (IAttendee) getModelElement();
            return attendee.isInContactRepository().content();
        }
       
        return false;
    }
View Full Code Here

Examples of org.eclipse.sapphire.samples.calendar.integrated.IAttendee

    }

    public static void jump( final CalendarEditor editor,
                             final Element modelElement )
    {
        final IAttendee attendee = (IAttendee) modelElement;
        final String name = attendee.getName().text();
       
        if( name != null )
        {
            Contact contact = null;
           
View Full Code Here

Examples of org.eclipse.sapphire.samples.calendar.integrated.IAttendee

public final class SendMailActionContributor extends PropertyEditorAssistContributor
{
    @Override
    public void contribute( final PropertyEditorAssistContext context )
    {
        final IAttendee attendee = (IAttendee) context.getPart().getLocalModelElement();
       
        if( attendee.getEMail().text() != null )
        {
            final PropertyEditorAssistContribution.Factory contribution = PropertyEditorAssistContribution.factory();
           
            contribution.text( "<p><a href=\"action\" nowrap=\"true\">Send mail...</a></p>" );
           
View Full Code Here

Examples of org.eclipse.sapphire.samples.calendar.integrated.IAttendee

        {
            @Override
            protected void handleTypedEvent( final PropertyEvent event )
            {
                final PropertyDef property = event.property().definition();
                final IAttendee attendee = (IAttendee) element();
               
                if( property == org.eclipse.sapphire.samples.calendar.IAttendee.PROP_NAME )
                {
                    attendee.getName().refresh();
                    attendee.isInContactRepository().refresh();
                    attendee.getEMail().refresh();
                }
                else if( property == org.eclipse.sapphire.samples.calendar.IAttendee.PROP_TYPE )
                {
                    attendee.getType().refresh();
                }
                else if( property == ContactRepository.PROP_CONTACTS )
                {
                    attendee.isInContactRepository().refresh();
                    attendee.getEMail().refresh();
                }
                else if( property == Contact.PROP_NAME )
                {
                    attendee.isInContactRepository().refresh();
                    attendee.getEMail().refresh();
                }
                else if( property == Contact.PROP_E_MAIL )
                {
                    attendee.getEMail().refresh();
                }
            }
        };
       
        this.base.attach( this.listener );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.