Eclipse RCP Tutorial: Lay out your view with FormLayout

Let’s say each widget has 4 sides, e.g., a button has top, bottom, left, and right. FormLayout works by using FormAttachments for each side of the widget. A FormAttachment specifies the position relative to the parent container or another widget in the same composite.

All of the following examples assume you know how to create a plug-in application with a view, as the code will work under createPartControl() method.

Read more