@Override
public void focusGained(FocusEvent e) {
}
});
NumericalTechnicalProperty property = ((NumericalTechnicalProperty)constraint.getTechnicalProperty());
String unitLabelStr = property.getUnit();
unitLabel = new Label(bodyComposite, SWT.NONE);
if (unitLabelStr != null)
unitLabel.setText("["+unitLabelStr+"]");
else
unitLabel.setText("");
unitLabel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true));
unitLabel.setBackground(unitLabel.getParent().getBackground());
String unitDescriptionStr = property.getUnitDescription();
if (unitDescriptionStr == null)
unitLabel.setToolTipText("no description avalible");
else
unitLabel.setToolTipText(unitDescriptionStr);