+/*
+ * Copyright (C) 2007-2012 Argeo GmbH
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.argeo.security.ui.dialogs;
import java.io.IOException;
isCancelled = false;
setBlockOnOpen(false);
open();
+
final Button okButton = getButton(IDialogConstants.OK_ID);
okButton.setText("Login");
okButton.addSelectionListener(new SelectionListener() {
// when the OSGi runtime is shut down
try {
Thread.sleep(100);
- if (display.isDisposed()) {
- log.warn("Display is disposed, killing login dialog thread");
- throw new ThreadDeath();
- }
+ // if (display.isDisposed()) {
+ // log.warn("Display is disposed, killing login dialog thread");
+ // throw new ThreadDeath();
+ // }
} catch (final Exception e) {
// do nothing
}
}, true, new NullProgressMonitor(), Display.getDefault());
} catch (ThreadDeath e) {
isCancelled = true;
+ log.debug("Thread " + Thread.currentThread().getId() + " died");
throw e;
} catch (Exception e) {
isCancelled = true;
} finally {
// so that the modal thread dies
processCallbacks = true;
- try {
- // wait for the modal context thread to gracefully exit
- modalContextThread.join(1000);
- } catch (InterruptedException ie) {
- // silent
- }
+ // try {
+ // // wait for the modal context thread to gracefully exit
+ // modalContextThread.join();
+ // } catch (InterruptedException ie) {
+ // // silent
+ // }
modalContextThread = null;
}
}
protected void configureShell(Shell shell) {
super.configureShell(shell);
- shell.setText("Login");
+ shell.setText("Authentication");
}
}