Author: adietish
Date: 2011-02-14 11:18:41 -0500 (Mon, 14 Feb 2011)
New Revision: 29143
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:45 UTC (rev 29142)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/ManageKeysPage.java 2011-02-14
16:18:41 UTC (rev 29143)
@@ -221,7 +221,7 @@
WizardMessages.getString(CONFIRM_KEY_DELETE_TITLE),
WizardMessages.getFormattedString(CONFIRM_KEY_DELETE_MSG, key.getId()));
if (confirmed) {
- deleteKey(key);
+ deleteSelectedKey();
}
}
};
@@ -422,10 +422,10 @@
}
}
- private void deleteKey(final DeltaCloudKey key) {
+ private void deleteSelectedKey() {
try {
Job job = new AbstractCloudElementJob(
- MessageFormat.format("Delete key {0}",key.getName()),
+ MessageFormat.format("Delete key {0}",model.getSelectedKey().getName()),
model.getCloud(),
CLOUDELEMENT.KEYS) {
Show replies by date