Package org.eclipse.sapphire.services

Examples of org.eclipse.sapphire.services.ValueNormalizationService.normalize()


        final int index = this.combo.getSelectionIndex();
       
        if( index == -1 )
        {
            final ValueNormalizationService valueNormalizationService = this.property.service( ValueNormalizationService.class );
            final String value = valueNormalizationService.normalize( this.combo.getText() );
           
            if( value.length() > 0 )
            {
                return value;
            }
View Full Code Here


                if( PopUpListFieldPropertyEditorPresentation.this.updatingModel || combo.isDisposed() )
                {
                    return;
                }
               
                final String text = valueNormalizationService.normalize( property.text() );
               
                try
                {
                    PopUpListFieldPropertyEditorPresentation.this.updatingEditor = true;
View Full Code Here

                                combo.select( possibleValueIndex );
                            }
                        }
                        else
                        {
                            if( ! equal( valueNormalizationService.normalize( combo.getText() ), text ) )
                            {
                                combo.deselectAll();
                                combo.setText( text );
                            }
                        }
View Full Code Here

            final int index = this.combo.getSelectionIndex();
           
            if( index == -1 )
            {
                final ValueNormalizationService valueNormalizationService = this.property.service( ValueNormalizationService.class );
                final String value = valueNormalizationService.normalize( this.combo.getText() );
               
                if( value.length() > 0 )
                {
                    return value;
                }
View Full Code Here

    {
        final Value<?> val = (Value<?>) value;
       
        final ValueNormalizationService valueNormalizationService = this.property.service( ValueNormalizationService.class );
       
        final String text = valueNormalizationService.normalize( val.text() );
        int index = -1;
       
        for( int i = 0, n = this.possibleValues.size(); index == -1 && i < n; i++ )
        {
            if( this.possibleValues.get( i ).value().equals( text ) )
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.