Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.ValueProperty.service()


    protected void initPossibleValuesService()
    {
        final ListProperty listProperty = context( ListProperty.class );
        final ValueProperty listMemberValueProperty = (ValueProperty) listProperty.getType().properties().first();
       
        this.base = listMemberValueProperty.service( PossibleValuesService.class );
       
        this.listener = new Listener()
        {
            @Override
            public void handle( final Event event )
View Full Code Here


    protected void initCollationService()
    {
        final ListProperty listProperty = context( ListProperty.class );
        final ValueProperty listMemberValueProperty = (ValueProperty) listProperty.getType().properties().first();
       
        this.base = listMemberValueProperty.service( CollationService.class );
       
        this.listener = new Listener()
        {
            @Override
            public void handle( final Event event )
View Full Code Here

    protected void initPossibleValuesService()
    {
        final ValueProperty property = context( ValueProperty.class );
       
        final EnumValueType enumType = new EnumValueType( property.getTypeClass() );
        final MasterConversionService masterConversionService = property.service( MasterConversionService.class );
       
        for( Enum<?> item : enumType.getItems() )
        {
            this.values.add( masterConversionService.convert( item, String.class ) );
        }
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.