File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
visualvm/core/src/org/graalvm/visualvm/core/ui/actions Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 45
45
import javax .swing .JComponent ;
46
46
import javax .swing .JLabel ;
47
47
import javax .swing .JPanel ;
48
- import org .graalvm .visualvm .core .VisualVM ;
49
48
import org .graalvm .visualvm .core .snapshot .RegisteredSnapshotCategories ;
50
49
import org .graalvm .visualvm .core .snapshot .SnapshotCategory ;
51
50
import org .openide .DialogDisplayer ;
@@ -199,12 +198,8 @@ private String openFile(final File file) {
199
198
200
199
for (SnapshotCategory category : categories ) {
201
200
if (category .getFileFilter ().accept (file )) {
202
- VisualVM .getInstance ().runTask (new Runnable () {
203
- public void run () {
204
- category .openSnapshot (file );
205
- LoadRecentSnapshot .instance ().addFile (file );
206
- }
207
- });
201
+ category .openSnapshot (file );
202
+ LoadRecentSnapshot .instance ().addFile (file );
208
203
return null ;
209
204
}
210
205
}
You can’t perform that action at this time.
0 commit comments