If you know the size of each composite, you could provide a widthHint
for both your Composite
objects.
leftEditorComposite.widthHint = 200;
and
rightEditorComposite.widthHint = 200;
Alternatively, you can read this question, and hopefully you will get your answer: How to align two composites in a parent composite without using widthHint and heightHint