Examples of IDiagramConnectionEndpointBindingDef


Examples of org.eclipse.sapphire.ui.diagram.def.IDiagramConnectionEndpointBindingDef

    }
       
    @Override
    public void setSerializedEndpoint2(Element connModelElement, String endpoint2Value)
    {
        IDiagramConnectionEndpointBindingDef endpointDef = this.bindingDef.getEndpoint2().content();
        String endpointProperty = endpointDef.getProperty().content();

        setModelProperty(connModelElement, endpointProperty, endpoint2Value);
    }
View Full Code Here

Examples of org.eclipse.sapphire.ui.diagram.def.IDiagramConnectionEndpointBindingDef

    }
   
    public String getSerializedEndpoint1(DiagramNodePart srcNode)
    {
        String endpoint1Value = null;
        IDiagramConnectionEndpointBindingDef srcAnchorDef = this.bindingDef.getEndpoint1().content();
        Value<Function> srcFunc = srcAnchorDef.getValue();
        FunctionResult srcFuncResult = getNodeReferenceFunction(srcNode, srcFunc,
                                this.bindingDef.adapt( LocalizationService.class ));
        if (srcFuncResult != null)
        {
            endpoint1Value = (String)srcFuncResult.value();
View Full Code Here

Examples of org.eclipse.sapphire.ui.diagram.def.IDiagramConnectionEndpointBindingDef

    }
   
    public String getSerializedEndpoint2(DiagramNodePart targetNode)
    {
        String endpoint2Value = null;
        IDiagramConnectionEndpointBindingDef targetAnchorDef = this.bindingDef.getEndpoint2().content();
        Value<Function> targetFunc = targetAnchorDef.getValue();;
        FunctionResult targetFuncResult = getNodeReferenceFunction(targetNode, targetFunc,
                                this.bindingDef.adapt( LocalizationService.class ));
       
        if (targetFuncResult != null)
        {
View Full Code Here

Examples of org.eclipse.sapphire.ui.diagram.def.IDiagramConnectionEndpointBindingDef

        return srcElement;
    }

    public void setSerializedEndpoint1(Element connModelElement, String endpoint1Value)
    {
        IDiagramConnectionEndpointBindingDef srcAnchorDef = this.bindingDef.getEndpoint1().content();
        if (getConnectionType() == ConnectionType.OneToOne)
        {
            setModelProperty(connModelElement, ((ModelPath.PropertySegment)this.endpoint1Path.head()).getPropertyName(), endpoint1Value);
        }
        else
        {
          Element srcElement = getOneToManyConnectionSrcElement(endpoint1Value);
            if (srcElement != null)
            {
                String srcProperty = srcAnchorDef.getProperty().content();
                setModelProperty(srcElement, srcProperty, endpoint1Value);
            }
        }
    }
View Full Code Here

Examples of org.eclipse.sapphire.ui.diagram.def.IDiagramConnectionEndpointBindingDef

                return newConn;               
            }
            else
            {
                Element srcElement = getOneToManyConnectionSrcElement(endpoint1Value);
                IDiagramConnectionEndpointBindingDef srcAnchorDef = this.bindingDef.getEndpoint1().content();
              String srcProperty = srcAnchorDef.getProperty().content();               
               
                if (srcElement == null)
                {
                  ElementList<?> list = getModelElement().property(this.modelProperty);
                    srcElement = list.insert();
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.