Search in sources :

Example 1 with ConnectionColumnAnchor

use of org.talend.designer.gefabstractmap.figures.anchors.ConnectionColumnAnchor in project tdi-studio-se by Talend.

the class TreeNodeEditPart method getSourceConnectionAnchor.

@Override
public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart connection) {
    IFigure figure = null;
    boolean forceDarshDot = false;
    if (getRootAnchor() != null) {
        figure = getRootAnchor();
        forceDarshDot = true;
    } else {
        figure = getFigure();
    }
    if (connection instanceof XmlMapLookupConnectionPart) {
        return new LookupColumnAnchor(figure, connection, entityManger);
    }
    if (connection instanceof XmlMapFilterConnectionPart) {
        return new FilterColumnAnchor(figure, connection, entityManger);
    }
    return new ConnectionColumnAnchor(figure, connection, entityManger, forceDarshDot);
}
Also used : ConnectionColumnAnchor(org.talend.designer.gefabstractmap.figures.anchors.ConnectionColumnAnchor) FilterColumnAnchor(org.talend.designer.gefabstractmap.figures.anchors.FilterColumnAnchor) IFigure(org.eclipse.draw2d.IFigure) LookupColumnAnchor(org.talend.designer.gefabstractmap.figures.anchors.LookupColumnAnchor)

Example 2 with ConnectionColumnAnchor

use of org.talend.designer.gefabstractmap.figures.anchors.ConnectionColumnAnchor in project tdi-studio-se by Talend.

the class TreeNodeEditPart method getTargetConnectionAnchor.

@Override
public ConnectionAnchor getTargetConnectionAnchor(ConnectionEditPart connection) {
    IFigure figure = null;
    boolean forceDarshDot = false;
    if (getRootAnchor() != null) {
        figure = getRootAnchor();
        forceDarshDot = true;
    } else {
        figure = getFigure();
    }
    if (connection instanceof XmlMapLookupConnectionPart) {
        return new LookupColumnAnchor(figure, connection, entityManger);
    }
    return new ConnectionColumnAnchor(figure, connection, entityManger, forceDarshDot);
}
Also used : ConnectionColumnAnchor(org.talend.designer.gefabstractmap.figures.anchors.ConnectionColumnAnchor) IFigure(org.eclipse.draw2d.IFigure) LookupColumnAnchor(org.talend.designer.gefabstractmap.figures.anchors.LookupColumnAnchor)

Aggregations

IFigure (org.eclipse.draw2d.IFigure)2 ConnectionColumnAnchor (org.talend.designer.gefabstractmap.figures.anchors.ConnectionColumnAnchor)2 LookupColumnAnchor (org.talend.designer.gefabstractmap.figures.anchors.LookupColumnAnchor)2 FilterColumnAnchor (org.talend.designer.gefabstractmap.figures.anchors.FilterColumnAnchor)1