From f3b7a9ace1bf937191c5b2dc23ed35e2a9c7e957 Mon Sep 17 00:00:00 2001 From: Tomas Hurka Date: Thu, 11 Aug 2022 20:42:46 +0200 Subject: [PATCH] Bundle keys fixed --- .../org/graalvm/visualvm/sampler/truffle/Bundle.properties | 4 ++-- .../visualvm/sampler/truffle/TruffleDataProvider.java | 6 +++--- .../sampler/truffle/memory/MemoryHistogramProvider.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/Bundle.properties b/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/Bundle.properties index 44058aa5db..6123dc3016 100644 --- a/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/Bundle.properties +++ b/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/Bundle.properties @@ -105,9 +105,9 @@ MSG_Press_mem=Press the 'Memory' button to start collecting memory data. MSG_Unavailable=Not available. -MSG_unavailable_init_jmx=Not available. Cannot initialize JMX connection to target application. Use 'Add JMX Connection' action to attach to the application. +MSG_Unavailable_init_jmx=Not available. Cannot initialize JMX connection to target application. Use 'Add JMX Connection' action to attach to the application. -MSG_unavailable_create_jmx=Not available. Failed to create JMX connection to target application. Use 'Add JMX Connection' action to attach to the application. +MSG_Unavailable_create_jmx=Not available. Failed to create JMX connection to target application. Use 'Add JMX Connection' action to attach to the application. MSG_Unavailable_remote=Not available. Remote sampling is only supported for Java 8+ applications. diff --git a/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/TruffleDataProvider.java b/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/TruffleDataProvider.java index 5220aa98f2..6a5c11b792 100644 --- a/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/TruffleDataProvider.java +++ b/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/TruffleDataProvider.java @@ -57,14 +57,14 @@ public abstract class TruffleDataProvider { protected static String initJMXConn(Application application) { if (application.getState() != Stateful.STATE_AVAILABLE) { - return NbBundle.getMessage(TruffleDataProvider.class, "MSG_unavailable"); // NOI18N + return NbBundle.getMessage(TruffleDataProvider.class, "MSG_Unavailable"); // NOI18N } JmxModel jmxModel = JmxModelFactory.getJmxModelFor(application); if (jmxModel == null) { - return NbBundle.getMessage(TruffleDataProvider.class, "MSG_unavailable_init_jmx"); // NOI18N + return NbBundle.getMessage(TruffleDataProvider.class, "MSG_Unavailable_init_jmx"); // NOI18N } if (jmxModel.getConnectionState() != JmxModel.ConnectionState.CONNECTED) { - return NbBundle.getMessage(TruffleDataProvider.class, "MSG_unavailable_create_jmx"); // NOI18N + return NbBundle.getMessage(TruffleDataProvider.class, "MSG_Unavailable_create_jmx"); // NOI18N } return null; } diff --git a/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/memory/MemoryHistogramProvider.java b/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/memory/MemoryHistogramProvider.java index a3c09f77f1..f4dc349087 100644 --- a/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/memory/MemoryHistogramProvider.java +++ b/visualvm/sampler.truffle/src/org/graalvm/visualvm/sampler/truffle/memory/MemoryHistogramProvider.java @@ -59,7 +59,7 @@ private String initialize(Application application) { } } catch (SecurityException e) { LOGGER.log(Level.INFO, "MemoryHistogramProvider.initialize() throws SecurityException for " + application, e); // NOI18N - return NbBundle.getMessage(ThreadInfoProvider.class, "MSG_unavailable_threads", VisualVM.getInstance().getLogfileHandle()); // NOI18N + return NbBundle.getMessage(MemoryHistogramProvider.class, "MSG_unavailable_threads", VisualVM.getInstance().getLogfileHandle()); // NOI18N } catch (Throwable t) { LOGGER.log(Level.INFO, "MemoryHistogramProvider.initialize() throws Throwable for " + application, t); // NOI18N return NbBundle.getMessage(ThreadInfoProvider.class, "MSG_unavailable_threads", VisualVM.getInstance().getLogfileHandle()); // NOI18N