Skip to content

Commit 7040bc8

Browse files
jisedlacthurka
authored andcommitted
Code cleanup
1 parent d8f90a1 commit 7040bc8

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

visualvm/heapviewer/src/com/sun/tools/visualvm/heapviewer/options/HeapViewerOptionsCategory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import org.netbeans.spi.options.OptionsPanelController;
3737
import org.openide.util.HelpCtx;
3838
import org.openide.util.Lookup;
39+
import org.openide.util.NbBundle;
3940
import org.openide.util.RequestProcessor;
4041

4142
/**
@@ -47,7 +48,7 @@
4748
categoryName = "#HeapViewerOptionsCategory_Name",
4849
iconBase = "com/sun/tools/visualvm/heapviewer/options/heapViewer32.png",
4950
position = 1525)
50-
@org.openide.util.NbBundle.Messages({
51+
@NbBundle.Messages({
5152
"HeapViewerOptionsCategory_Name=Heap Viewer"
5253
})
5354
public final class HeapViewerOptionsCategory extends OptionsPanelController {

visualvm/heapviewer/src/com/sun/tools/visualvm/heapviewer/options/HeapViewerOptionsPanel.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private void initComponents() {
185185

186186
setLayout(new GridBagLayout());
187187

188-
SectionSeparator presetsSection = UISupport.createSectionSeparator("Custom OQL Scripts"); // NOI18N
188+
SectionSeparator presetsSection = UISupport.createSectionSeparator("Custom OQL Scripts");
189189
c = new GridBagConstraints();
190190
c.gridy = 0;
191191
c.gridwidth = GridBagConstraints.REMAINDER;
@@ -215,10 +215,10 @@ public void removeSelectionInterval(int i1, int i2) {}
215215
});
216216
list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
217217
final Dimension oneDim = new Dimension(1, 1);
218-
final JLabel loadingScriptsLabel = new JLabel("<loading scripts>", JLabel.CENTER); // NOI18N
218+
final JLabel loadingScriptsLabel = new JLabel("<loading scripts>", JLabel.CENTER);
219219
loadingScriptsLabel.setEnabled(false);
220220
loadingScriptsLabel.setSize(loadingScriptsLabel.getPreferredSize());
221-
final JLabel noScriptsLabel = new JLabel("<no saved scripts>", JLabel.CENTER); // NOI18N
221+
final JLabel noScriptsLabel = new JLabel("<no saved scripts>", JLabel.CENTER);
222222
noScriptsLabel.setEnabled(false);
223223
noScriptsLabel.setSize(noScriptsLabel.getPreferredSize());
224224
JScrollPane listScroll = new JScrollPane(list) {
@@ -253,7 +253,7 @@ protected void fireActionPerformed(ActionEvent e) {
253253
int mar = nimbusLaF ? 0 : 8;
254254
margin.left = mar;
255255
margin.right = mar;
256-
removeButton.setToolTipText("Delete selected script"); // NOI18N
256+
removeButton.setToolTipText("Delete selected script");
257257
removeButton.setMargin(margin);
258258
upButton = new JButton() {
259259
protected void fireActionPerformed(ActionEvent e) {
@@ -271,7 +271,7 @@ protected void fireActionPerformed(ActionEvent e) {
271271
};
272272
downButton.setIcon(new ImageIcon(ImageUtilities.loadImage(
273273
"com/sun/tools/visualvm/profiler/resources/down.png", true))); // NOI18N
274-
downButton.setToolTipText("Move selected script down"); // NOI18N
274+
downButton.setToolTipText("Move selected script down");
275275
downButton.setMargin(margin);
276276

277277
JPanel controlsPanel = new JPanel(new GridLayout(1, 4, 5, 0)) {
@@ -306,7 +306,7 @@ public void setEnabled(boolean enabled) {
306306
add(presetsPanel, c);
307307

308308
JLabel nameLabel = new JLabel();
309-
Mnemonics.setLocalizedText(nameLabel, "&Name:"); // NOI18N
309+
Mnemonics.setLocalizedText(nameLabel, "&Name:");
310310
c = new GridBagConstraints();
311311
c.gridx = 0;
312312
c.gridy = 0;
@@ -338,7 +338,7 @@ public void setBackground(Color bg) {
338338
presetsPanel.add(nameField, c);
339339

340340
JLabel descrLabel = new JLabel();
341-
Mnemonics.setLocalizedText(descrLabel, "&Description (optional):"); // NOI18N
341+
Mnemonics.setLocalizedText(descrLabel, "&Description (optional):");
342342
c = new GridBagConstraints();
343343
c.gridx = 0;
344344
c.gridy = 1;
@@ -378,7 +378,7 @@ public void setEnabled(boolean b) {
378378
presetsPanel.add(descrScroll, c);
379379

380380
JLabel previewLabel = new JLabel();
381-
Mnemonics.setLocalizedText(previewLabel, "&Preview:"); // NOI18N
381+
Mnemonics.setLocalizedText(previewLabel, "&Preview:");
382382
c = new GridBagConstraints();
383383
c.gridx = 0;
384384
c.gridy = 3;

0 commit comments

Comments
 (0)