Package org.neo4j.neoclipse.property.PropertyTransform

Examples of org.neo4j.neoclipse.property.PropertyTransform.PropertyHandler


            if ( !props.containsKey( key ) )
            {
                continue;
            }
            Object value = props.get( key );
            PropertyHandler handler = PropertyTransform.getHandler( value );
            if ( !handler.isArray() )
            {
                String tmpPropVal = handler.render( value );
                if ( !"".equals( tmpPropVal ) ) // no empty strings
                {
                    img = userIcons.getImage( tmpPropVal );
                    if ( img != null )
                    {
View Full Code Here


    {
        if ( container.hasProperty( key ) )
        {
            // try to keep the same type as the previous value
            Class<?> c = GraphDbUtil.getProperty( container, key ).getClass();
            PropertyHandler propertyHandler = PropertyTransform.getHandler( c );
            if ( propertyHandler == null )
            {
                MessageDialog.openError( null, "Error",
                        "No property handler was found for type "
                                + c.getSimpleName() + "." );
                return;
            }
            Object o = null;
            try
            {
                o = propertyHandler.parse( value );
            }
            catch ( Exception e )
            {
                Dialog.openError( "Error", "Could not parse the input as type "
                                           + c.getSimpleName() + "." );
View Full Code Here

    }

    @Override
    public String getText( Object value )
    {
        PropertyHandler propertyHandler = PropertyTransform.getHandler( value );
        if ( propertyHandler != null )
        {
            return propertyHandler.render( value );
        }
        else
        {
            return "(no rendering available)";
        }
View Full Code Here

TOP

Related Classes of org.neo4j.neoclipse.property.PropertyTransform.PropertyHandler

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.