From f9432dc625d89fdc42acd4960545769bc513fb3b Mon Sep 17 00:00:00 2001 From: Bruno Sinou Date: Wed, 8 Apr 2015 16:21:44 +0000 Subject: [PATCH] Enrich Eclipse UI Utils git-svn-id: https://svn.argeo.org/commons/trunk@8066 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- .../src/org/argeo/eclipse/ui/EclipseUiUtils.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/EclipseUiUtils.java b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/EclipseUiUtils.java index 2a17d285c..52eaf9b84 100644 --- a/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/EclipseUiUtils.java +++ b/org.argeo.eclipse.ui/src/org/argeo/eclipse/ui/EclipseUiUtils.java @@ -49,10 +49,20 @@ public class EclipseUiUtils { return grabWidth(SWT.FILL, SWT.FILL); } + public static GridData fillWidth(int colSpan) { + GridData gd = grabWidth(SWT.FILL, SWT.FILL); + gd.horizontalSpan = colSpan; + return gd; + } + public static GridData fillAll() { return new GridData(SWT.FILL, SWT.FILL, true, true); } + public static GridData fillAll(int colSpan, int rowSpan) { + return new GridData(SWT.FILL, SWT.FILL, true, true, colSpan, rowSpan); + } + public static GridData grabWidth(int horizontalAlignment, int verticalAlignment) { return new GridData(horizontalAlignment, horizontalAlignment, true, -- 2.30.2