From 9ee135e797004cf3e59b2e43f3a15ec1aa8056b9 Mon Sep 17 00:00:00 2001 From: Alexander Lobas Date: Fri, 21 Jun 2013 16:04:47 +0400 Subject: [PATCH] Properties --- .../intellij/designer/propertyTable/PropertyTable.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/designer/propertyTable/PropertyTable.java b/platform/platform-impl/src/com/intellij/designer/propertyTable/PropertyTable.java index e19185ad7fef..acbfe63960bf 100644 --- a/platform/platform-impl/src/com/intellij/designer/propertyTable/PropertyTable.java +++ b/platform/platform-impl/src/com/intellij/designer/propertyTable/PropertyTable.java @@ -861,15 +861,11 @@ public abstract class PropertyTable extends JBTable { message = "No message"; } - Messages.showMessageDialog(formatErrorGettingValueMessage(message), + Messages.showMessageDialog(MessageFormat.format("Error setting value: {0}", message), "Invalid Input", Messages.getErrorIcon()); } - private static String formatErrorGettingValueMessage(String message) { - return MessageFormat.format("Error setting value: {0}", message); - } - ////////////////////////////////////////////////////////////////////////////////////////// // // @@ -1324,7 +1320,7 @@ public abstract class PropertyTable extends JBTable { } catch (Exception e) { LOG.debug(e); - renderer.append(formatErrorGettingValueMessage(e.getMessage()), SimpleTextAttributes.ERROR_ATTRIBUTES); + renderer.append(MessageFormat.format("Error getting value: {0}", e.getMessage()), SimpleTextAttributes.ERROR_ATTRIBUTES); return renderer; } }