X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms.ui%2Fsrc%2Forg%2Fargeo%2Fcms%2Fui%2FCmsView.java;h=311d10fbe9d22f2c1db2db8e9f55d14a9db7a850;hb=3877d57c9cdad93179d6362a09af6b18576a512c;hp=9f5e4f7973f9e35f29b37dca5199ca9b88814e2d;hpb=32315b6eea1e2284e4269536b5fb7fee8cc03b8d;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.cms.ui/src/org/argeo/cms/ui/CmsView.java b/org.argeo.cms.ui/src/org/argeo/cms/ui/CmsView.java index 9f5e4f797..311d10fbe 100644 --- a/org.argeo.cms.ui/src/org/argeo/cms/ui/CmsView.java +++ b/org.argeo.cms.ui/src/org/argeo/cms/ui/CmsView.java @@ -5,7 +5,7 @@ import java.util.Map; import javax.security.auth.login.LoginContext; -import org.eclipse.swt.widgets.Composite; +import org.eclipse.swt.widgets.Control; import org.eclipse.swt.widgets.Shell; /** Provides interaction with the CMS system. */ @@ -51,8 +51,12 @@ public interface CmsView { properties.put(param, value); sendEvent(topic, properties); } + + default void applyStyles(Object widget) { + + } - static CmsView getCmsView(Composite parent) { + static CmsView getCmsView(Control parent) { // find parent shell Shell topShell = parent.getShell(); while (topShell.getParent() != null)