From: Bruno Sinou Date: Wed, 8 Apr 2015 16:21:44 +0000 (+0000) Subject: Enrich Eclipse UI Utils X-Git-Tag: argeo-commons-2.1.30~275 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=f9432dc625d89fdc42acd4960545769bc513fb3b;p=lgpl%2Fargeo-commons.git Enrich Eclipse UI Utils git-svn-id: https://svn.argeo.org/commons/trunk@8066 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc --- 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,