import javax.security.auth.login.LoginContext;
+import org.argeo.cms.auth.CmsSession;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
throw new UnsupportedOperationException();
}
+ default Void runAs(Runnable runnable) {
+ return doAs(new PrivilegedAction<Void>() {
+
+ @Override
+ public Void run() {
+ if (runnable != null)
+ runnable.run();
+ return null;
+ }
+ });
+ }
+
+ default void stateChanged(String state, String title) {
+ }
+
+ default CmsSession getCmsSession() {
+ throw new UnsupportedOperationException();
+ }
+
static CmsView getCmsView(Control parent) {
// find parent shell
Shell topShell = parent.getShell();