From d56c4443c420dde706d3037f3bca7d4fb5781e64 Mon Sep 17 00:00:00 2001 From: davidcok Date: Thu, 3 Aug 2023 15:23:48 -0400 Subject: [PATCH] Adding scrollbars to Nodegroup Store View --- .../src/com/ge/research/rack/views/NodegroupsView.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/rack/rack.plugin/src/com/ge/research/rack/views/NodegroupsView.java b/tools/rack/rack.plugin/src/com/ge/research/rack/views/NodegroupsView.java index 0effb1c6..99238361 100644 --- a/tools/rack/rack.plugin/src/com/ge/research/rack/views/NodegroupsView.java +++ b/tools/rack/rack.plugin/src/com/ge/research/rack/views/NodegroupsView.java @@ -43,6 +43,7 @@ import org.eclipse.core.runtime.jobs.Job; import org.eclipse.jface.action.*; import org.eclipse.swt.SWT; +import org.eclipse.swt.custom.ScrolledComposite; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.layout.FormAttachment; @@ -118,7 +119,10 @@ public void createPartControl(Composite parent) { final Display display = Display.getCurrent(); - final Composite composite = new Composite(parent, SWT.NONE); + final ScrolledComposite sc = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL); + final Composite composite = new Composite(sc, SWT.NONE); + sc.setContent(composite); + GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.verticalSpacing = 10;