Package org.eclipse.sapphire

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


   
    protected void handleModelPropertyChange(final PropertyEvent event)
    {
        final Element element = event.property().element();
        final ListProperty property = (ListProperty)event.property().definition();
        ElementList<?> newList = element.property(property);
       
        if (property == this.connListProperty)
        {
          handleConnectionListChange(element, property);
       
View Full Code Here


        }
        Element srcNodeModel = srcNode.getLocalModelElement();
        // check the target node type
        ElementType targetType = targetNode.getLocalModelElement().type();
       
        PropertyDef connProp = srcNodeModel.property(this.propertyName).definition();       
        ElementType connType = connProp.getType();
        PropertyDef endpointProp =
            connType.property(this.bindingDef.getEndpoint2().content().getProperty().content());
        if (endpointProp.getType() == null && endpointProp.hasAnnotation(Reference.class))
        {
View Full Code Here

        this.children = new ArrayList<ShapePart>();

        final Element element = getModelElement();
        final String propertyName = this.shapeFactoryDef.getProperty().content();
        final ListProperty property = (ListProperty) resolve( element, propertyName );
        this.list = element.property( property );
       
        for( Element listEntryModelElement : list )
        {
          ShapeFactoryCaseDef shapeFactoryCase = getShapeFactoryCase(listEntryModelElement);
          ShapePart childShapePart = createShapePart(shapeFactoryCase, listEntryModelElement);
View Full Code Here

    protected void initReferenceService()
    {
        final Element element = context( Element.class );
        final ElementReference elementReferenceAnnotation = context( PropertyDef.class ).getAnnotation( ElementReference.class );
       
        this.list = (ElementList<?>) element.property( elementReferenceAnnotation.list() );
        this.key = elementReferenceAnnotation.key();
       
        super.initReferenceService();
    }
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.