import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.UnsupportedCallbackException;
-import org.argeo.ArgeoException;
+import org.argeo.cms.CmsException;
import org.argeo.cms.widgets.auth.DefaultLoginDialog;
import org.eclipse.swt.widgets.Display;
import org.osgi.framework.BundleActivator;
private ServiceRegistration<CallbackHandler> defaultCallbackHandlerReg;
public void start(BundleContext context) throws Exception {
- if (bundleContext != null)
- if (!bundleContext.equals(bundleContext))
- throw new ArgeoException(
- "Bundle context already set with a different value");
- else
- return;
-
bundleContext = context;
defaultCallbackHandler = new DefaultCallbackHandler();
try {
dialog.handle(callbacks);
} catch (IOException e) {
- throw new ArgeoException("Cannot open dialog", e);
+ throw new CmsException("Cannot open dialog", e);
}
}
});