Package org.eclipse.sapphire.java

Examples of org.eclipse.sapphire.java.JavaType


               
                final ReferenceService<?> referenceService = property.service( ReferenceService.class );
               
                if( referenceService != null && referenceService instanceof JavaTypeReferenceService )
                {
                    JavaType type = null;
               
                    try
                    {
                        type = ( (JavaTypeReferenceService) referenceService ).resolve( typeName );
                    }
                    catch( Exception e )
                    {
                        Sapphire.service( LoggingService.class ).log( e );
                    }
                   
                    if( type != null )
                    {
                        final JavaTypeKind k = type.kind();
                       
                        if( k == JavaTypeKind.CLASS || k == JavaTypeKind.ABSTRACT_CLASS )
                        {
                            verb = verbExtend.text();
                        }
View Full Code Here


           
            final ElementList<ActionHandlerDef> handlers = page.getActionHandlers();
            assertNotNull( handlers );
            assertEquals( 1, handlers.size() );
           
            JavaType type;
            Class<?> cl;
           
            type = handlers.get( 0 ).getImplClass().target();
            assertNotNull( type );
            cl = (Class<?>) type.artifact();
            assertNotNull( cl );
            assertEquals( TestActionHandler.class, cl );
        }
        finally
        {
View Full Code Here

    private ShapeFactoryCaseDef getShapeFactoryCase( final Element element )
  {
        for( ShapeFactoryCaseDef shapeFactoryCaseDef : this.shapeFactoryDef.getCases() )
        {
            final JavaType type = shapeFactoryCaseDef.getElementType().target();
            final Class<?> cl = (Class<?>) type.artifact();

            if(cl.isAssignableFrom( element.getClass() ) )
            {
                return shapeFactoryCaseDef;
            }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.java.JavaType

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.