summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2012-05-17 05:04:57 (EDT)
committerManik Kishore2012-06-19 07:29:59 (EDT)
commit2898be69fa6e9a091fc2030fa3027140cbad2e45 (patch)
treed55f47297e6a06520668cf5ab27120d62ec96650
parent7d099649f435bcd42f9131d1a0a4c68d0f9aa17f (diff)
downloadorg.eclipse.stardust.ui.web-2898be69fa6e9a091fc2030fa3027140cbad2e45.zip
org.eclipse.stardust.ui.web-2898be69fa6e9a091fc2030fa3027140cbad2e45.tar.gz
org.eclipse.stardust.ui.web-2898be69fa6e9a091fc2030fa3027140cbad2e45.tar.bz2
Jira-ID: CRNT-24549
-Added code to perform action on accept of openStrandedActivitiesAlert git-svn-id: http://emeafrazerg/svn/ipp/product/trunk/stardust/ui.web@56410 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b
-rw-r--r--admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/UserManagementBean.java24
1 files changed, 23 insertions, 1 deletions
diff --git a/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/UserManagementBean.java b/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/UserManagementBean.java
index e5a8976..8f4b9e7 100644
--- a/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/UserManagementBean.java
+++ b/admin-portal/src/main/java/org/eclipse/stardust/ui/web/admin/views/UserManagementBean.java
@@ -373,8 +373,30 @@ public class UserManagementBean extends PopupUIComponentBean
public void openStrandedActivitiesAlert()
{
AdminMessagesPropertiesBean propsBean = AdminMessagesPropertiesBean.getInstance();
+ ConfirmationDialogHandler dialogHandler = new ConfirmationDialogHandler()
+ {
+ public boolean cancel()
+ {
+ userMgmtStrandedActConfirmationDialog = null;
+ return true;
+ }
+
+ public boolean accept()
+ {
+ try
+ {
+ userMgmtStrandedActConfirmationDialog = null;
+ showNotificationDialog();
+ return true;
+ }
+ catch (Exception e)
+ {
+ throw new RuntimeException(e);
+ }
+ }
+ };
userMgmtStrandedActConfirmationDialog = new ConfirmationDialog(DialogContentType.NONE,
- DialogActionType.OK_CANCEL, DialogType.ACCEPT_ONLY, DialogStyle.COMPACT, null);
+ DialogActionType.OK_CANCEL, DialogType.ACCEPT_ONLY, DialogStyle.COMPACT, dialogHandler);
userMgmtStrandedActConfirmationDialog.setTitle(propsBean.getString("common.strandedActivitiesAlert.title"));
userMgmtStrandedActConfirmationDialog.setMessage(propsBean
.getString("common.strandedActivitiesAlert.message.label"));