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; } }