gridData.grabExcessHorizontalSpace = false;
gridData.grabExcessVerticalSpace = false;
gridData.widthHint = GRID_DATA_1a_WIDTH_HINT;
gridData.verticalAlignment = GridData.FILL;
labelDistance = new CLabel(compositeOperations, SWT.NONE);
labelDistance.setLayoutData(gridData);
labelDistance.setText(Messages.PrecisionParallel_distance + ":"); //$NON-NLS-1$
labelDistance.setToolTipText(Messages.PrecisionParallel_distance + ":" + this.distance); //$NON-NLS-1$
GridData gridData1 = new GridData();
gridData1.horizontalAlignment = GridData.FILL;
gridData1.grabExcessHorizontalSpace = false;
gridData1.grabExcessVerticalSpace = false;
gridData1.widthHint = GRID_DATA_2a_WIDTH_HINT;
gridData1.verticalAlignment = GridData.FILL;
textDistance = new Text(compositeOperations, SWT.BORDER);
textDistance.setLayoutData(gridData1);
textDistance.setText(distance);
textDistance.addKeyListener(new KeyAdapter() {
@Override
public void keyReleased(KeyEvent e) {
// enter key
if (e.keyCode == 13 || e.keyCode == 16777296) {
applyChanges();
}
}
});
GridData gridData3 = new GridData();
gridData3.horizontalAlignment = GridData.FILL;
gridData3.grabExcessHorizontalSpace = false;
gridData3.grabExcessVerticalSpace = false;
gridData3.widthHint = GRID_DATA_3a_WIDTH_HINT;
gridData3.verticalAlignment = GridData.FILL;
labelUnit = new CLabel(compositeOperations, SWT.NONE);
labelUnit.setLayoutData(gridData3);
labelUnit.setText(unitName);
CLabel emptyLabel = new CLabel(compositeOperations, SWT.NONE);
emptyLabel.setLayoutData(gridData3);
GridData gridData4 = new GridData();
gridData4.horizontalAlignment = GridData.FILL;
gridData4.grabExcessHorizontalSpace = false;
gridData4.grabExcessVerticalSpace = true;