Examples of ICreateConnectionFeature


Examples of org.eclipse.graphiti.features.ICreateConnectionFeature

              @Override
              protected void doExecute() {
                IDiagramTypeProvider dtp =
                    de.getDiagramTypeProvider();
                IFeatureProvider fp = dtp.getFeatureProvider();
                ICreateConnectionFeature cf =
                    fp.getCreateConnectionFeatures()[0];
                CreateConnectionContext cc =
                    new CreateConnectionContext();
               
                cc.setSourceAnchor(
                    fLiteralShape.getAnchors().get(0));
                cc.setSourcePictogramElement(fLiteralShape);
               
                cc.setTargetAnchor(
                    fParamShape.getAnchors().get(0));
                cc.setTargetPictogramElement(fParamShape);
                assertTrue(cf.canCreate(cc));
                cf.execute(cc);
              }
            });
      }
    }));
   
View Full Code Here

Examples of org.eclipse.graphiti.features.ICreateConnectionFeature

    List<ICreateConnectionFeature> createConnectionFeatureList = new ArrayList<ICreateConnectionFeature>();

    for (FeatureContainer c : containers) {
      if (c instanceof ConnectionFeatureContainer) {
        ConnectionFeatureContainer connectionFeatureContainer = (ConnectionFeatureContainer) c;
        ICreateConnectionFeature createConnectionFeature = connectionFeatureContainer
            .getCreateConnectionFeature(this);
        if (createConnectionFeature == null) {
          continue;
        }
        createConnectionFeatureList.add(createConnectionFeature);
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.