X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms.ui%2Fsrc%2Forg%2Fargeo%2Fcms%2Fui%2Futil%2FCmsUiUtils.java;h=e72965893cf4cc5e57a6b6ee24e819e8250846dc;hb=fea7cd546f9c04c00f961918919dd6307c32cc8e;hp=5d6030ec4b72aa6de533281405ef7fff89eacd91;hpb=4ccc02902dad75faebe4aaa9b0b9880e2785c298;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms.ui/src/org/argeo/cms/ui/util/CmsUiUtils.java b/org.argeo.cms.ui/src/org/argeo/cms/ui/util/CmsUiUtils.java index 5d6030ec4..e72965893 100644 --- a/org.argeo.cms.ui/src/org/argeo/cms/ui/util/CmsUiUtils.java +++ b/org.argeo.cms.ui/src/org/argeo/cms/ui/util/CmsUiUtils.java @@ -164,7 +164,7 @@ public class CmsUiUtils implements CmsConstants { * 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); @@ -182,8 +182,9 @@ public class CmsUiUtils implements CmsConstants { 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; }