| .. | .. |
|---|
| 1 | 1 | package timeflow.app; |
|---|
| 2 | 2 | |
|---|
| 3 | +import java.net.URL; |
|---|
| 3 | 4 | import timeflow.app.ui.*; |
|---|
| 4 | 5 | import timeflow.app.actions.*; |
|---|
| 5 | 6 | import timeflow.app.ui.filter.*; |
|---|
| .. | .. |
|---|
| 696 | 697 | System.out.println("getVisibleFiles = " + dir); |
|---|
| 697 | 698 | try |
|---|
| 698 | 699 | { |
|---|
| 699 | | - String[] s = new File(TimeflowApp.class.getClassLoader().getResource(dir).toURI()).list(); |
|---|
| 700 | + final URL resource = TimeflowApp.class.getClassLoader().getResource(dir); |
|---|
| 701 | + System.out.println("resource = " + resource); |
|---|
| 702 | + String[] s = new File(resource.toURI()).list(); |
|---|
| 700 | 703 | ArrayList<String> real = new ArrayList<String>(); |
|---|
| 701 | 704 | for (int i = 0; i < s.length; i++) |
|---|
| 702 | 705 | { |
|---|
| .. | .. |
|---|
| 709 | 712 | } |
|---|
| 710 | 713 | catch (Exception e) |
|---|
| 711 | 714 | { |
|---|
| 715 | + e.printStackTrace(); |
|---|
| 712 | 716 | return new String[0]; |
|---|
| 713 | 717 | } |
|---|
| 714 | 718 | } |
|---|