Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Commit

Permalink
fix API
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-medeiros committed Feb 15, 2016
1 parent acd96eb commit a311f81
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -11,7 +11,6 @@
package melnorme.util.swt.components;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;

import melnorme.util.swt.SWTLayoutUtil;

Expand All @@ -20,11 +19,11 @@ public interface IWidgetComponent {
/**
* Create the component controls under a single top-level Control.
*/
public Control createComponent(Composite parent);
public Composite createComponent(Composite parent);

/** Do {@link #createComponent(Composite)}, and also set the layout data of created Control. */
default Control createComponent(Composite parent, Object layoutData) {
Control control = createComponent(parent);
default Composite createComponent(Composite parent, Object layoutData) {
Composite control = createComponent(parent);
return SWTLayoutUtil.setLayoutData(control, layoutData);
}

Expand Down

0 comments on commit a311f81

Please sign in to comment.