Skip to content

Commit ff3cbab

Browse files
committed
Fixed MSG_Cannot_take_JFR_dump resource key (t/T), correct formatting parameter
1 parent cfdf580 commit ff3cbab

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

visualvm/jfr/src/org/graalvm/visualvm/jfr/impl/Bundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ LBL_JFR_Dump=JFR Dump
6262

6363
LBL_JFR_Dumps=JFR Dumps
6464

65-
MSG_Cannot_take_JFR_dump=Cannot take JFR dump for
65+
MSG_Cannot_Take_JFR_dump=Cannot take JFR dump for {0}
6666

6767
LBL_Creating_JFR_Dump=Creating JFR Dump...
6868

visualvm/jfr/src/org/graalvm/visualvm/jfr/impl/JFRRecordingProvider.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ public void run() {
147147
}
148148
if (jvm == null || recordings.isEmpty()) {
149149
DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message(NbBundle.getMessage(JFRRecordingProvider.class,
150-
"MSG_Cannot_Take_JFR_dump") + DataSourceDescriptorFactory. // NOI18N
151-
getDescriptor(application).getName(), NotifyDescriptor.ERROR_MESSAGE));
150+
"MSG_Cannot_Take_JFR_dump", DataSourceDescriptorFactory. // NOI18N
151+
getDescriptor(application).getName()), NotifyDescriptor.ERROR_MESSAGE));
152152
return;
153153
}
154154

@@ -199,8 +199,8 @@ public void run() {
199199
List<Long> recordings = model.jfrCheck();
200200
if (recordings.isEmpty()) {
201201
DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message(NbBundle.getMessage(JFRRecordingProvider.class,
202-
"MSG_Cannot_Take_JFR_dump") + DataSourceDescriptorFactory. // NOI18N
203-
getDescriptor(application).getName(), NotifyDescriptor.ERROR_MESSAGE));
202+
"MSG_Cannot_Take_JFR_dump", DataSourceDescriptorFactory. // NOI18N
203+
getDescriptor(application).getName()), NotifyDescriptor.ERROR_MESSAGE));
204204
return;
205205
}
206206
String file = dumpFile;
@@ -358,7 +358,7 @@ private void processNewApplication(Application application) {
358358
private void notifyJfrDumpFailed(final DataSource dataSource) {
359359
String displayName = DataSourceDescriptorFactory.getDescriptor(dataSource).getName();
360360
DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message(NbBundle.getMessage(JFRRecordingProvider.class,
361-
"MSG_Cannot_Take_JFR_dump") + displayName, // NOI18N
361+
"MSG_Cannot_Take_JFR_dump", displayName), // NOI18N
362362
NotifyDescriptor.ERROR_MESSAGE));
363363
}
364364

0 commit comments

Comments
 (0)