Author: adietish
Date: 2011-02-14 11:17:45 -0500 (Mon, 14 Feb 2011)
New Revision: 29142
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/ManageKeysPage.java
Log:
[JBIDE-8294]
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/ManageKeysPage.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/ManageKeysPage.java 2011-02-14
16:17:24 UTC (rev 29141)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/ManageKeysPage.java 2011-02-14
16:17:45 UTC (rev 29142)
@@ -216,11 +216,12 @@
return new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
+ DeltaCloudKey key = model.getSelectedKey();
boolean confirmed = MessageDialog.openConfirm(getShell(),
WizardMessages.getString(CONFIRM_KEY_DELETE_TITLE),
- WizardMessages.getFormattedString(CONFIRM_KEY_DELETE_MSG,
model.getSelectedKey().getId()));
+ WizardMessages.getFormattedString(CONFIRM_KEY_DELETE_MSG, key.getId()));
if (confirmed) {
- deleteKey();
+ deleteKey(key);
}
}
};
@@ -421,9 +422,12 @@
}
}
- private void deleteKey() {
+ private void deleteKey(final DeltaCloudKey key) {
try {
- Job job = new AbstractCloudElementJob("Delete key", model.getCloud(),
CLOUDELEMENT.KEYS) {
+ Job job = new AbstractCloudElementJob(
+ MessageFormat.format("Delete key {0}",key.getName()),
+ model.getCloud(),
+ CLOUDELEMENT.KEYS) {
protected IStatus doRun(IProgressMonitor monitor) throws Exception {
try {
@@ -436,7 +440,7 @@
public void run() {
isConfirmDelete[0] = MessageDialog.openConfirm(
getShell(),
- "Delete key locally?",
+ MessageFormat.format("Delete key {0} locally?",key.getName()),
MessageFormat.format(
"Shall the key \"{0}\" be deleted from local key
store?",
key.getName()));
Show replies by date