/**
* Invoked when an action occurs.
*/
public void actionPerformed(final ActionEvent e)
{
final ReportDesignerContext context = getReportDesignerContext();
if (context == null)
{
throw new IllegalStateException();
}
final Window window = LibSwingUtil.getWindowAncestor(NetworkSettingsPanel.this);
final ShowPasswordsDialog showPasswordsDialog;
if (window instanceof Dialog)
{
showPasswordsDialog = new ShowPasswordsDialog((Dialog) window);
}
else if (window instanceof Frame)
{
showPasswordsDialog = new ShowPasswordsDialog((Frame) window);
}
else
{
showPasswordsDialog = new ShowPasswordsDialog();
}
showPasswordsDialog.showDialog(context.getGlobalAuthenticationStore());
}