(String result)
| 708 | |
| 709 | //在explorer attach模式时操作鼠标和键盘以快速跳转到文件位置 |
| 710 | private void quickJump(String result) { |
| 711 | closeWithoutHideSearchBar(); |
| 712 | String jumpLocation; |
| 713 | String fileName; |
| 714 | if (FileUtil.isFile(result)) { |
| 715 | jumpLocation = FileUtil.getParentPath(result); |
| 716 | fileName = FileUtil.getFileName(result); |
| 717 | } else { |
| 718 | jumpLocation = result; |
| 719 | fileName = ""; |
| 720 | } |
| 721 | saveCache(result); |
| 722 | jumpLocation = new String(jumpLocation.getBytes(StandardCharsets.UTF_8), StandardCharsets.UTF_8); |
| 723 | fileName = new String(fileName.getBytes(StandardCharsets.UTF_8), StandardCharsets.UTF_8); |
| 724 | try { |
| 725 | GetHandle.INSTANCE.setEditPath(jumpLocation, fileName); |
| 726 | } catch (Exception e) { |
| 727 | log.error(e.getMessage(), e); |
| 728 | } |
| 729 | } |
| 730 | |
| 731 | /** |
| 732 | * 复制信息到系统剪贴板 |
no test coverage detected