(File file)
| 91 | FileAlterationObserver o = new FileAlterationObserver(new File(sourceFilename).getParentFile(), |
| 92 | new NameFileFilter(name)); |
| 93 | try { |
| 94 | o.initialize(); |
| 95 | } catch (Exception e) { |
| 96 | e.printStackTrace(); |
| 97 | } |
| 98 | o.addListener(new FileAlterationListenerAdaptor() { |
| 99 | @Override |
| 100 | public void onFileChange(File file) { |
| 101 | if (file.getName().equals(name)) { |
| 102 | System.out.println(" automatic reload for texture :" + file); |
nothing calls this directly
no test coverage detected