* FORM LAYOUT
*/
- public static FormData coversAll() {
+ public static FormData coverAll() {
FormData fdLabel = new FormData();
fdLabel.top = new FormAttachment(0, 0);
fdLabel.left = new FormAttachment(0, 0);
if (style == null)
return widget;// does nothing
EclipseUiSpecificUtils.setStyleData(widget, style);
- if (widget instanceof Control)
- CmsView.getCmsView(((Control) widget).getParent()).applyStyles(widget);
+ if (widget instanceof Control) {
+ CmsView.getCmsView((Control) widget).applyStyles(widget);
+ }
return widget;
}