}
};
}
else if( pdef == IEvent.PROP_ATTENDEES )
{
final ListPropertyBinding binding = new LayeredListPropertyBinding()
{
private final ElementList<org.eclipse.sapphire.samples.calendar.IAttendee> base
= EventResource.this.base.getAttendees();
@Override
public ElementType type( final Resource resource )
{
return IAttendee.TYPE;
}
@Override
protected Resource resource( final Object obj )
{
return new AttendeeResource( EventResource.this, (org.eclipse.sapphire.samples.calendar.IAttendee) obj );
}
@Override
protected List<?> readUnderlyingList()
{
return this.base;
}
@Override
protected Object insertUnderlyingObject( final ElementType type,
final int position )
{
return this.base.insert( org.eclipse.sapphire.samples.calendar.IAttendee.TYPE, position );
}
@Override
public void move( final Resource resource,
final int position )
{
this.base.move( ( (AttendeeResource) resource ).getBase(), position );
}
@Override
public void remove( final Resource resource )
{
this.base.remove( ( (AttendeeResource) resource ).getBase() );
}
};
return binding;
}
else if( pdef == IEvent.PROP_ATTACHMENTS )
{
final ListPropertyBinding binding = new LayeredListPropertyBinding()
{
private final ElementList<org.eclipse.sapphire.samples.calendar.IEventAttachment> base
= EventResource.this.base.getAttachments();
@Override