Skip to content

Commit

Permalink
Bundle keys fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
thurka committed Aug 11, 2022
1 parent 19fd832 commit f3b7a9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3b7a9a

Please sign in to comment.