Skip to content

Instantly share code, notes, and snippets.

View SteveDonie's full-sized avatar

Steve Donie SteveDonie

View GitHub Profile
@mpost
mpost / GridDataUtil.java
Created July 25, 2013 08:36
An efficient way to deal with SWT GridLayout and GridData configurations. Allows you to apply SWT GridLayout and GridData to Composites and Controls in a very compact form, while being more powerful at the same time. To apply a GridLayout and configure it to your use case the following expression can be used: GridLayoutUtil.applyGridLayout( comp…
package com.eclipsesource.swt.util;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Control;
public class GridDataUtil {
private final GridData gridData;