@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);
}
});
}
}));