File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
visualvm/jfr/src/org/graalvm/visualvm/jfr/impl Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ LBL_JFR_Dumps=JFR Dumps
64
64
65
65
MSG_Cannot_Take_JFR_dump =Cannot take JFR dump for {0}
66
66
67
+ MSG_Cannot_Stop_JFR =Cannot stop JFR recording for {0}
68
+
67
69
LBL_Creating_JFR_Dump =Creating JFR Dump...
68
70
69
71
LBL_Loading_JFR_Dump =Loading JFR dump...
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public void run() {
116
116
pHandle .setInitialDelay (0 );
117
117
pHandle .start ();
118
118
if (!jvm .stopJfrRecording ()) {
119
- notifyJfrDumpFailed (application );
119
+ notifyJfrStopFailed (application );
120
120
} else {
121
121
Set <DataSource > ds = ActionUtils .getSelectedDataSources ();
122
122
JFRDumpAction .instance ().updateState (ds );
@@ -369,6 +369,13 @@ private void notifyJfrDumpFailed(final DataSource dataSource) {
369
369
NotifyDescriptor .ERROR_MESSAGE ));
370
370
}
371
371
372
+ private void notifyJfrStopFailed (final DataSource dataSource ) {
373
+ String displayName = DataSourceDescriptorFactory .getDescriptor (dataSource ).getName ();
374
+ DialogDisplayer .getDefault ().notifyLater (new NotifyDescriptor .Message (NbBundle .getMessage (JFRRecordingProvider .class ,
375
+ "MSG_Cannot_Stop_JFR" , displayName ), // NOI18N
376
+ NotifyDescriptor .ERROR_MESSAGE ));
377
+ }
378
+
372
379
private class SnapshotListener implements DataChangeListener <Snapshot > {
373
380
374
381
public void dataChanged (DataChangeEvent <Snapshot > event ) {
You can’t perform that action at this time.
0 commit comments