Author: adietish
Date: 2011-03-15 04:53:22 -0400 (Tue, 15 Mar 2011)
New Revision: 29781
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties
Log:
[JBIDE-8295] externalized confirmation dialog strings
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java 2011-03-15
08:18:25 UTC (rev 29780)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/commands/StopInstanceHandler.java 2011-03-15
08:53:22 UTC (rev 29781)
@@ -91,7 +91,7 @@
private void stopInstances(Object[] deltaCloudInstances) {
if (askUserToConfirm()) {
for (int i = 0; i < deltaCloudInstances.length; i++) {
- stopInstance((DeltaCloudInstance) deltaCloudInstances[i]);
+ doStopInstance((DeltaCloudInstance) deltaCloudInstances[i]);
}
}
}
@@ -118,9 +118,9 @@
private boolean askUserToConfirm() {
return UIUtils
.openConfirmationDialog(
- "Confirm instance stop",
- "You are about to stop a running system(s), that might be in production. Are
you sure that you want to stop the given instance(s)?",
- "Don't warn me again",
+ CVMessages.getString("StopInstancesConfirm.title"),
+ CVMessages.getString("StopInstancesConfirm.msg"),
+ CVMessages.getString("StopInstancesConfirmDontWarn.msg"),
IDeltaCloudPreferenceConstants.DONT_CONFIRM_CREATE_INSTANCE,
Activator.PLUGIN_ID,
WorkbenchUtils.getActiveShell());
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties 2011-03-15
08:18:25 UTC (rev 29780)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties 2011-03-15
08:53:22 UTC (rev 29781)
@@ -58,6 +58,9 @@
StopInstancesDialog.msg=Please choose the instances that shall be stopped by checking
them:
StopInstancesDialogError.title=Error while stopping instance(s)
StopInstancesDialogError.msg=Could not stop instance(s) {0}
+StopInstancesConfirm.title=Confirm instance stop
+StopInstancesConfirm.msg=You are about to stop a running system(s), that might be in
production. Are you sure that you want to stop the given instance(s)?
+StopInstancesConfirmDontWarn.msg=Don't warn me again
RebootingInstance.title=Rebooting Instance
RebootingInstance.msg=Rebooting Instance: {0}
RebootInstancesDialog.title=Reboot Instances
Show replies by date