Opens a text file selected with a chooser and writes the contents to the log.
()
| 711 | * Opens a text file selected with a chooser and writes the contents to the log. |
| 712 | */ |
| 713 | public void open() { |
| 714 | OSPRuntime.getChooser().showOpenDialog(null, new Runnable() { |
| 715 | |
| 716 | @Override |
| 717 | public void run() { |
| 718 | File file = OSPRuntime.getChooser().getSelectedFile(); |
| 719 | String fileName = XML.getRelativePath(file.getAbsolutePath()); |
| 720 | fileName = XML.getRelativePath(fileName); |
| 721 | open(fileName); |
| 722 | } |
| 723 | |
| 724 | }, null); |
| 725 | } |
| 726 | |
| 727 | /** |
| 728 | * Opens a text file specified by name and writes the contents to the log. |
no test coverage detected