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=fea7cd546f9c04c00f961918919dd6307c32cc8e;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..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. */ @@ -52,7 +53,15 @@ public interface CmsView { sendEvent(topic, properties); } - static CmsView getCmsView(Composite parent) { + default void applyStyles(Object widget) { + + } + + default T doAs(PrivilegedAction action) { + throw new UnsupportedOperationException(); + } + + static CmsView getCmsView(Control parent) { // find parent shell Shell topShell = parent.getShell(); while (topShell.getParent() != null)