Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
remove some code which came in from JarPrintPage.java

Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
  • Loading branch information
chrisrueger committed Dec 14, 2024
1 parent dc2506a commit a80305b
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions bndtools.core/src/bndtools/editor/BndSourceEffectivePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit a80305b

Please sign in to comment.