Search in sources :

Example 1 with FilterColumnAnchor

use of org.talend.designer.gefabstractmap.figures.anchors.FilterColumnAnchor 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)

Aggregations

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