diff --git a/bndtools.core/src/bndtools/editor/BndSourceEffectivePage.java b/bndtools.core/src/bndtools/editor/BndSourceEffectivePage.java index b4e6e41eaf..1a2cd17746 100644 --- a/bndtools.core/src/bndtools/editor/BndSourceEffectivePage.java +++ b/bndtools.core/src/bndtools/editor/BndSourceEffectivePage.java @@ -17,11 +17,8 @@ import org.eclipse.swt.SWT; import org.eclipse.swt.custom.StackLayout; import org.eclipse.swt.custom.StyledText; -import org.eclipse.swt.graphics.Point; -import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; -import org.eclipse.swt.widgets.Label; import org.eclipse.ui.IActionBars; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.IWorkbenchPartSite; @@ -69,31 +66,10 @@ protected void createFormContent(IManagedForm managedForm) { header.setLayout(GridLayoutFactory.createFrom(new GridLayout(1, true)) .margins(0, 0) .create()); - - Composite findParent = toolkit.createComposite(header, SWT.BORDER); - findParent.setLayout(GridLayoutFactory.createFrom(new GridLayout(6, false)) - .margins(5, 5) - .create()); - findParent.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false)); - findParent.setBackgroundMode(SWT.INHERIT_FORCE); - - toolkit.setBorderStyle(SWT.NULL); - - Label highlightStatus = toolkit.createLabel(findParent, ""); - highlightStatus.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, true)); - Composite body = form.getBody(); - StackLayout stackLayout = new StackLayout() { - @Override - protected Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache) { - Point size = super.computeSize(composite, wHint, hHint, flushCache); - // hack to make sure styledText never grows outside of body - size.y = SWT.DEFAULT; - return size; - } - }; + StackLayout stackLayout = new StackLayout(); stackLayout.marginHeight = stackLayout.marginWidth = 5; body.setLayout(stackLayout);