Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.Property.element()


                final Property parent = modelElement.parent();               
                if( parent == null )
                {
                    throw new RuntimeException("Invalid model path: " + endpointPath);
                }
                return resolveEndpointReferenceValue(parent.element(), endpointPath.tail());               
            }
            else
            {
                throw new RuntimeException("Invalid model path: " + endpointPath);
            }
View Full Code Here


        else
        {
            if (propertyPath.head() instanceof ModelPath.ParentElementSegment)
            {
                final Property parent = modelElement.parent();
                setModelProperty(parent.element(), propertyPath.tail(), value);
            }
        }
    }
   
    public void addModelListener()
View Full Code Here

                    element = cast( operand( 0 ), Element.class );
                }
               
                final Property parent = element.parent();
               
                return ( parent == null ? null : parent.element() );
            }
        };
    }
   
}
View Full Code Here

   
    @Override
    protected void initPossibleValuesService()
    {
        final Property property = context( Property.class );
        final Element element = property.element();
       
        final PossibleValues a = property.definition().getAnnotation( PossibleValues.class );
       
        this.path = new ModelPath( a.property() );
View Full Code Here

            }
        };
       
        if( property.definition() instanceof ImpliedElementProperty )
        {
            property.element().attach( this.propertyListener, property.name() + "/*" );
        }
        else
        {
            property.element().attach( this.propertyListener, property.name() );
        }
View Full Code Here

        {
            property.element().attach( this.propertyListener, property.name() + "/*" );
        }
        else
        {
            property.element().attach( this.propertyListener, property.name() );
        }
    }

    @Override
    protected Boolean compute()
View Full Code Here

       
        this.versionCompatibilityService.detach( this.versionCompatibilityServiceListener );
       
        if( property.definition() instanceof ImpliedElementProperty )
        {
            property.element().detach( this.propertyListener, property.name() + "/*" );
        }
        else
        {
            property.element().detach( this.propertyListener, property.name() );
        }
View Full Code Here

        {
            property.element().detach( this.propertyListener, property.name() + "/*" );
        }
        else
        {
            property.element().detach( this.propertyListener, property.name() );
        }
    }

}
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.