(TinyV2Mappings.TinyV2SubType subType)
| 388 | } |
| 389 | |
| 390 | private void applyTinyV2Map(TinyV2Mappings.TinyV2SubType subType) { |
| 391 | fcLoadMap.setInitialDirectory(config().getRecentLoadDir()); |
| 392 | File file = fcLoadMap.showOpenDialog(null); |
| 393 | if (file != null) { |
| 394 | try { |
| 395 | Mappings mappings = new TinyV2Mappings(file.toPath(), controller.getWorkspace(), subType); |
| 396 | mappings.setCheckFieldHierarchy(true); |
| 397 | mappings.setCheckMethodHierarchy(true); |
| 398 | mappings.accept(controller.getWorkspace().getPrimary()); |
| 399 | } catch (Exception ex) { |
| 400 | error(ex, "Failed to apply mappings: {}", file.getName()); |
| 401 | ExceptionAlert.show(ex, "Failed to apply mappings: " + file.getName()); |
| 402 | } |
| 403 | } |
| 404 | } |
| 405 | |
| 406 | /** |
| 407 | * Display history window. |
no test coverage detected