use of org.eclipse.draw2d.Label in project tdi-studio-se by Talend.
the class SearchZoneToolBar method setTooltips.
private void setTooltips() {
Label tooltip = new Label();
tooltip.setText("next");
move_down.setToolTip(tooltip);
tooltip = new Label();
tooltip.setText("previous");
move_up.setToolTip(tooltip);
tooltip = new Label();
tooltip.setText("hightlight all");
hightLightAll.setToolTip(tooltip);
}
use of org.eclipse.draw2d.Label in project tdi-studio-se by Talend.
the class InputZoneToolBar method setTooltips.
private void setTooltips() {
Label tooltip = new Label();
tooltip.setText("Move up selected input lookup table");
move_up.setToolTip(tooltip);
tooltip = new Label();
tooltip.setText("Move down selected input lookup table");
move_down.setToolTip(tooltip);
tooltip = new Label();
tooltip.setText("Minimize all input tables");
min_size.setToolTip(tooltip);
// disable for 5.0.0
// tooltip = new Label();
// tooltip.setText("Setup the configurations of tXMLMap");
// propertyButton.setToolTip(tooltip);
}
use of org.eclipse.draw2d.Label in project tdi-studio-se by Talend.
the class ConnLabelEditPart method createFigure.
/*
* (non-Javadoc)
*
* @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
*/
@Override
public IFigure createFigure() {
String text = ((ConnectionLabel) getModel()).getLabelText();
Label label = new Label();
label.setText(text);
return label;
}
use of org.eclipse.draw2d.Label in project tdi-studio-se by Talend.
the class ConnLabelEditPart method refreshVisuals.
/*
* (non-Javadoc)
*
* @see org.eclipse.gef.editparts.AbstractEditPart#refreshVisuals()
*/
@Override
protected void refreshVisuals() {
String text = ((ConnectionLabel) getModel()).getLabelText();
Point offset = ((ConnectionLabel) getModel()).getOffset();
Label figure = (Label) getFigure();
figure.setText(text);
ConnectionPart parent = (ConnectionPart) getParent();
PolylineConnection connFigure = (PolylineConnection) parent.getFigure();
//$NON-NLS-1$
ConnLabelConstraint constraint = new ConnLabelConstraint(text, "center", offset, connFigure);
parent.setLayoutConstraint(this, getFigure(), constraint);
}
use of org.eclipse.draw2d.Label in project tdi-studio-se by Talend.
the class CollapseFigure method setCollapsed.
/**
* setCollapsed Setter method to change collapsed state of the figure. Will force update to repaint the figure to
* reflect the changes.
*
* @param b boolean true to set collapsed, false to uncollapse.
*/
public void setCollapsed(boolean b) {
collapsed = b;
Image img;
if (isCollapsed()) {
img = getExpandFigure();
} else {
img = getCollapseFigure();
}
setContents(new Label(img));
// revalidate();
// repaint();
}
Aggregations