Search in sources :

Example 1 with TextCellLabel

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

the class GlobalMapKeysEntityFigure method createEntityItems.

@Override
protected void createEntityItems(TableEntityElement entityElement) {
    this.globalMapNode = getEntityManager().getModel();
    expression = new ExpressionFigure();
    expression.setText(globalMapNode.getExpression());
    globalMapKey = new TextCellLabel();
    globalMapKey.setDirectEditType(DirectEditType.NODE_NAME);
    globalMapKey.setText(globalMapNode.getName());
    globalMapKey.setLabelAlignment(PositionConstants.LEFT);
    deleteImage = new ImageFigure(ImageProviderMapper.getImage(ImageInfo.DELETE));
    entityElement.add(expression);
    entityElement.add(globalMapKey);
    entityElement.add(deleteImage);
    addCheckListener();
}
Also used : ExpressionFigure(org.talend.designer.gefabstractmap.figures.ExpressionFigure) ImageFigure(org.eclipse.draw2d.ImageFigure) TextCellLabel(org.talend.designer.gefabstractmap.figures.TextCellLabel)

Aggregations

ImageFigure (org.eclipse.draw2d.ImageFigure)1 ExpressionFigure (org.talend.designer.gefabstractmap.figures.ExpressionFigure)1 TextCellLabel (org.talend.designer.gefabstractmap.figures.TextCellLabel)1