X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms.ui%2Fsrc%2Forg%2Fargeo%2Fcms%2Fui%2FCmsView.java;h=8011dce59a9af024ef40ecb025c30cde7e80be31;hb=495daae85d453bce3e030358372907f9e534bfae;hp=b403a2088d33fbfcb703c49c1bdf11762eca4b6d;hpb=b94bc29e6cb5aa29283a380fdc775ecded7f5734;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 b403a2088..8011dce59 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 @@ -1,11 +1,12 @@ package org.argeo.cms.ui; +import java.security.PrivilegedAction; import java.util.HashMap; 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,12 +52,16 @@ public interface CmsView { properties.put(param, value); sendEvent(topic, properties); } - + default void applyStyles(Object widget) { - + + } + + default T doAs(PrivilegedAction action) { + throw new UnsupportedOperationException(); } - static CmsView getCmsView(Composite parent) { + static CmsView getCmsView(Control parent) { // find parent shell Shell topShell = parent.getShell(); while (topShell.getParent() != null)