Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.Element.type()


                }
            }
        }
        catch( Exception e )
        {
            final String msg = failure.format( element.type().getSimpleName(), property.name(), e.getMessage() );
            throw new RuntimeException( msg, e );
        }
    }
   
    /**
 
View Full Code Here


        {
            super.fillTracingInfo( info );
           
            final Element element = this.part.getLocalModelElement();
            info.put( "part", this.part.getClass().getName() + '(' + System.identityHashCode( this.part ) + ')' );
            info.put( "element", element.type().getQualifiedName() + '(' + System.identityHashCode( element ) + ')' );
           
            return info;
        }
    }
   
View Full Code Here

                                    button = noneButton;
                                    noneButton.setVisible( true );
                                }
                                else
                                {
                                    button = typeToButton.get( subModelElement.type() );
                                    noneButton.setVisible( false );
                                }
                               
                                if( radioButtonsGroup.getSelection() != button )
                                {
View Full Code Here

                                {
                                    index = -1;
                                }
                                else
                                {
                                    index = typeToIndex.get( subModelElement.type() );
                                }
                               
                                if( combo.getSelectionIndex() != index )
                                {
                                    if( index == -1 )
View Full Code Here

       
        this.context = element.adapt( Context.class );
       
        if( this.context == null )
        {
            this.context = Context.adapt( element.type().getModelElementClass().getClassLoader() );
        }
    }

    @Override
    public JavaType resolve( final String name )
View Full Code Here

    @Override
    public boolean canStartNewConnection(DiagramNodePart srcNode)
    {
        Element srcNodeModel = srcNode.getLocalModelElement();
        // check the source node type
        ElementType srcNodeType = srcNodeModel.type();
        ElementType desiredsrcNodeType = this.nodeTemplate.getNodeType();
       
        if (!srcNodeType.equals(desiredsrcNodeType))
        {
            return false;
View Full Code Here

       
        final ListFactory<Validation> annotations = ListFactory.start();
       
        if( property == null )
        {
            final ElementType type = element.type();
           
            annotations.add( type.getAnnotations( Validation.class ) );
           
            for( final Validations v : type.getAnnotations( Validations.class ) )
            {
View Full Code Here

        {
            versionCompatibilityTargetAnnotation = property.getAnnotation( VersionCompatibilityTarget.class );
        }
        else
        {
            versionCompatibilityTargetAnnotation = element.type().getAnnotation( VersionCompatibilityTarget.class );
        }
       
        Function versionFunction = null;
       
        try
View Full Code Here

                return property.hasAnnotation( VersionCompatibilityTarget.class );
            }
            else
            {
                final Element element = context.find( Element.class );
                return element != null && element.type().hasAnnotation( VersionCompatibilityTarget.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.