Author: adietish
Date: 2010-12-15 16:31:05 -0500 (Wed, 15 Dec 2010)
New Revision: 27529
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/ErrorUtils.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/WizardMessages.properties
Log:
[JBIDE-7917] fixed error reporting
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/ErrorUtils.java
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/ErrorUtils.java 2010-12-15
21:26:15 UTC (rev 27528)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/ErrorUtils.java 2010-12-15
21:31:05 UTC (rev 27529)
@@ -25,7 +25,7 @@
public class ErrorUtils {
public static IStatus handleError(final String title, final String message, Throwable e,
final Shell shell) {
IStatus status = createStatus(e);
- openErrorDialog(title, status, shell);
+ openErrorDialog(title, message, status, shell);
log(status);
return status;
}
@@ -64,13 +64,13 @@
}
}
- private static void openErrorDialog(final String title, final IStatus status, final
Shell shell) {
+ private static void openErrorDialog(final String title, String message, final IStatus
status, final Shell shell) {
// Display.getDefault().syncExec(new Runnable() {
// public void run() {
// ErrorDialog.openError(shell, title, status.getMessage(), status);
// }
// });
- ErrorDialog.openError(shell, title, status.getMessage(), status);
+ ErrorDialog.openError(shell, title, message, status);
}
public static IStatus createMultiStatus(DeltaCloudMultiException throwable) {
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/WizardMessages.properties
===================================================================
---
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/WizardMessages.properties 2010-12-15
21:26:15 UTC (rev 27528)
+++
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/WizardMessages.properties 2010-12-15
21:31:05 UTC (rev 27529)
@@ -61,8 +61,8 @@
Defaulted=Defaulted
Loading.value=Loading...
-CreateInstanceError.title=Launch Instance Failure
-CreateInstanceError.msg=The attempt to launch instance: name={0}, image={1}, realm={2},
profile={3}
+CreateInstanceError.title=Error
+CreateInstanceError.msg=Could not launch instance \"{0}\" from image
\"{1}\" using realm \"{2}\" and profile \"{3}\"
CreateInstanceErrorReason.msg=Server did not launch instance
ConfirmCreate.title=Confirm Launch Instance
Show replies by date