Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.PropertyDef


    }
   
    @Override
    public boolean isSingleLine()
    {
        final PropertyDef pdef = property().definition();
       
        if( pdef instanceof ValueProperty && ! pdef.hasAnnotation( LongString.class ) )
        {
            return true;
        }
       
        return false;
View Full Code Here


   
    @Override
    protected void initContextVersionService()
    {
        final Element element = context( Element.class );
        final PropertyDef property = context( PropertyDef.class );
       
        final VersionCompatibilityTarget versionCompatibilityTargetAnnotation;
       
        if( property != null )
        {
            versionCompatibilityTargetAnnotation = property.getAnnotation( VersionCompatibilityTarget.class );
        }
        else
        {
            versionCompatibilityTargetAnnotation = element.type().getAnnotation( VersionCompatibilityTarget.class );
        }
View Full Code Here

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final PropertyDef property = context.find( PropertyDef.class );
           
            if( property != null )
            {
                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

    public static final class Condition extends ServiceCondition
    {
        @Override
        public boolean applicable( final ServiceContext context )
        {
            final PropertyDef property = context.find( PropertyDef.class );
           
            if( property != null )
            {
                final Derived annotation = property.getAnnotation( Derived.class );
               
                if( annotation != null && annotation.text().length() > 0 )
                {
                    return true;
                }
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.PropertyDef

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.