Search in sources :

Example 1 with VarNodeExpression

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

the class VarEntityFigure method createEntityItems.

@Override
protected void createEntityItems(TableEntityElement entityElement) {
    expression = new VarNodeExpression();
    expression.setText(getExpressionText());
    type = new ComboCellLabel();
    type.setDirectEditType(DirectEditType.VAR_NODE_TYPE);
    type.setText(getTypeDisplayValue(getType(), isNullable()));
    type.setLabelAlignment(PositionConstants.LEFT);
    type.setBorder(new CompoundBorder(new ColumnBorder(), new RowBorder(2, 5, 2, -1)));
    entityElement.add(expression);
    entityElement.add(type);
    entityElement.add(createVariableContainer());
}
Also used : RowBorder(org.talend.designer.gefabstractmap.figures.borders.RowBorder) ComboCellLabel(org.talend.designer.gefabstractmap.figures.ComboCellLabel) CompoundBorder(org.eclipse.draw2d.CompoundBorder) VarNodeExpression(org.talend.designer.gefabstractmap.figures.VarNodeExpression) ColumnBorder(org.talend.designer.gefabstractmap.figures.borders.ColumnBorder)

Aggregations

CompoundBorder (org.eclipse.draw2d.CompoundBorder)1 ComboCellLabel (org.talend.designer.gefabstractmap.figures.ComboCellLabel)1 VarNodeExpression (org.talend.designer.gefabstractmap.figures.VarNodeExpression)1 ColumnBorder (org.talend.designer.gefabstractmap.figures.borders.ColumnBorder)1 RowBorder (org.talend.designer.gefabstractmap.figures.borders.RowBorder)1