Skip to content

Commit d7925cb

Browse files
committed
NbBundle.getMessage() fixed
1 parent fe97152 commit d7925cb

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

visualvm/jfr/src/org/graalvm/visualvm/jfr/JFRSnapshotSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ public static boolean requiresUnlockCommercialFeatures(Application application)
216216
}
217217

218218
private static void displayUnlockCommercialFeaturesNotification(Application application) {
219-
ProfilerDialogs.displayWarningDNSA(NbBundle.getMessage(JFRSnapshotDescriptor.class, "Msg_CommercialFeatures"), // NOI18N
220-
NbBundle.getMessage(JFRSnapshotDescriptor.class, "Caption_CommercialFeatures"), // NOI18N
219+
ProfilerDialogs.displayWarningDNSA(NbBundle.getMessage(JFRSnapshotSupport.class, "Msg_CommercialFeatures"), // NOI18N
220+
NbBundle.getMessage(JFRSnapshotSupport.class, "Caption_CommercialFeatures"), // NOI18N
221221
null, "JFRSnapshotSupport_NotifyCommercialFeatures", true); // NOI18N
222222
}
223223

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public void propertyChange(PropertyChangeEvent evt) {
6363

6464
private JFRStartAction() {
6565
super(DataSource.class);
66-
putValue(NAME, NbBundle.getMessage(JFRDumpAction.class, "MSG_JFR_Start")); // NOI18N
67-
putValue(SHORT_DESCRIPTION, NbBundle.getMessage(JFRDumpAction.class, "LBL_JFR_Start")); // NOI18N
66+
putValue(NAME, NbBundle.getMessage(JFRStartAction.class, "MSG_JFR_Start")); // NOI18N
67+
putValue(SHORT_DESCRIPTION, NbBundle.getMessage(JFRStartAction.class, "LBL_JFR_Start")); // NOI18N
6868
}
6969

7070
protected void actionPerformed(Set<DataSource> dataSources, ActionEvent actionEvent) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ public void propertyChange(PropertyChangeEvent evt) {
6363

6464
private JFRStopAction() {
6565
super(DataSource.class);
66-
putValue(NAME, NbBundle.getMessage(JFRDumpAction.class, "MSG_JFR_Stop")); // NOI18N
67-
putValue(SHORT_DESCRIPTION, NbBundle.getMessage(JFRDumpAction.class, "LBL_JFR_Stop")); // NOI18N
66+
putValue(NAME, NbBundle.getMessage(JFRStopAction.class, "MSG_JFR_Stop")); // NOI18N
67+
putValue(SHORT_DESCRIPTION, NbBundle.getMessage(JFRStopAction.class, "LBL_JFR_Stop")); // NOI18N
6868
}
6969

7070
protected void actionPerformed(Set<DataSource> dataSources, ActionEvent actionEvent) {

visualvm/jfr/src/org/graalvm/visualvm/jfr/views/overview/OverviewViewSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ private void initComponents(String jvmargs) {
268268
}
269269

270270
private String formatJVMArgs(String jvmargs) {
271-
if (jvmargs == null || jvmargs.isEmpty()) return NbBundle.getMessage(JFRSnapshotOverviewView.class, "LBL_none"); // NOI18N
271+
if (jvmargs == null || jvmargs.isEmpty()) return NbBundle.getMessage(OverviewViewSupport.class, "LBL_none"); // NOI18N
272272

273273
String mangledString = " ".concat(jvmargs).replace(" -","\n"); // NOI18N
274274
StringTokenizer tok = new StringTokenizer(mangledString,"\n"); // NOI18N

visualvm/jfr/src/org/graalvm/visualvm/jfr/views/sampler/MemorySamplerViewSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ public void run() {
509509

510510
DataViewComponent.DetailsView getDetailsView() {
511511
return new DataViewComponent.DetailsView(NbBundle.getMessage(
512-
CPUSamplerViewSupport.class, "LBL_ThreadAlloc_M"), null, 20, this, null); // NOI18N
512+
MemorySamplerViewSupport.class, "LBL_ThreadAlloc_M"), null, 20, this, null); // NOI18N
513513
}
514514

515515

0 commit comments

Comments
 (0)