File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
visualvm/heapviewer/src/com/sun/tools/visualvm/heapviewer/ui Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 58
58
import com .sun .tools .visualvm .heapviewer .HeapContext ;
59
59
import com .sun .tools .visualvm .heapviewer .HeapViewer ;
60
60
import java .awt .Dimension ;
61
+ import java .io .File ;
61
62
import org .openide .util .Lookup ;
62
63
import org .openide .util .NbBundle ;
63
64
import org .openide .util .RequestProcessor ;
@@ -87,7 +88,9 @@ public HeapViewerComponent(HeapViewer heapViewer) {
87
88
88
89
add (new JLabel (Bundle .HeapViewerComponent_LoadingProgress (), JLabel .CENTER ), BorderLayout .CENTER );
89
90
90
- new RequestProcessor ("HPROF initializer for " + getName ()).post (new Runnable () { // NOI18N
91
+ File file = heapViewer .getFile ();
92
+ String name = file == null ? "<no heap dump file>" : file .getName (); // NOI18N
93
+ new RequestProcessor ("HPROF initializer for " + name ).post (new Runnable () { // NOI18N
91
94
public void run () { initImpl (); }
92
95
});
93
96
}
You can’t perform that action at this time.
0 commit comments