I have an editor extending FormEditor. I am trying to set some margin inside a nested composite. I see some margin at the top when I open, but when I move a vertical bar, the margin disappears. Could anybody tell me what the problem is? I am just trying to add some margin at the left and top for the nested composite.
Any workaround would be appreciated as well. I am pretty new to the eclipse UI.
Composite parent = getContainer();
int editorWidth = 700;
int editorHeight = 700;
final ScrolledComposite scomposite = new ScrolledComposite(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
Color whiteColor = new Color(scomposite.getDisplay(), 255, 255, 255);
final Composite composite = new Composite(scomposite, SWT.NONE);
Color backgroundColor = new Color(composite.getDisplay(), 246, 160, 11);