Rev 221 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 221 | Rev 382 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | 23 | ||
24 | byte act_path_depth=0; |
24 | byte act_path_depth=0; |
Line -... | Line 25... | ||
- | 25 | String[] act_path_arr; |
|
- | 26 | ||
25 | String[] act_path_arr; |
27 | |
26 | 28 | public boolean dirty=true; |
|
27 | 29 | ||
28 | public String act_path() |
30 | public String act_path() |
29 | { |
31 | { |
30 | String res=""; |
32 | String res=""; |
31 | for (int i=0;i<act_path_depth;i++) |
33 | for (int i=0;i<act_path_depth;i++) |
- | 34 | res+=act_path_arr[i]; |
|
- | 35 | return res; |
|
- | 36 | } |
|
- | 37 | ||
- | 38 | public void refresh_if_dirty() |
|
- | 39 | { |
|
Line 32... | Line 40... | ||
32 | res+=act_path_arr[i]; |
40 | if (dirty) trigger(); |
33 | return res; |
41 | dirty=false; |
Line 63... | Line 71... | ||
63 | else |
71 | else |
64 | act_path_arr[act_path_depth++]=file_list[canvas.act_menu_select-1]; |
72 | act_path_arr[act_path_depth++]=file_list[canvas.act_menu_select-1]; |
65 | } |
73 | } |
66 | canvas.act_menu_select=0; |
74 | canvas.act_menu_select=0; |
67 | //chg_state(STATEID_FILEOPEN); |
75 | //chg_state(STATEID_FILEOPEN); |
68 | trigger(); |
76 | dirty=true; |
69 | } |
77 | } |
Line 70... | Line 78... | ||
70 | 78 | ||
71 | 79 | ||
Line 98... | Line 106... | ||
98 | } |
106 | } |
99 | else |
107 | else |
100 | { |
108 | { |
Line 101... | Line 109... | ||
101 | 109 | ||
102 | try { |
110 | try { |
- | 111 | FileConnection fc = (FileConnection) Connector.open("file:///"+act_path()+"DUBwise"); |
|
- | 112 | // Enumeration filelist = fc.list("*", true); |
|
103 | FileConnection fc = (FileConnection) Connector.open("file:///"+act_path()); |
113 | fc.mkdir(); |
104 | Enumeration filelist = fc.list("*", true); |
114 | Enumeration filelist = fc.list();//"*", true); |
105 | int tmp_i=0; |
115 | int tmp_i=0; |
106 | while(filelist.hasMoreElements()) { |
116 | while(filelist.hasMoreElements()) { |
107 | file_list[tmp_i] = (String) filelist.nextElement(); |
117 | file_list[tmp_i] = (String) filelist.nextElement(); |
108 | tmp_i++; |
118 | tmp_i++; |
109 | /* fc = (FileConnection) |
119 | /* fc = (FileConnection) |
110 | Connector.open("file:///CFCard/" + fileName); |
120 | Connector.open("file:///CFCard/" + fileName); |
111 | if(fc.isDirectory()) { |
121 | if(fc.isDirectory()) { |
112 | System.out.println("\tDirectory Name: " + fileName); |
122 | System.out.println("\tDirectory Name: " + fileName); |