adrnsoh / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

File Tree Bug #97

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Path separator '\' has to be appended at node depth 1
2.
3.

What is the expected output? What do you see instead?
The picture tells a lot.

What version of the product are you using? On what operating system?
public beta.

Please provide any additional information below.

Original issue reported on code.google.com by austine...@gmail.com on 15 Mar 2012 at 4:41

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by shai.almog on 15 Mar 2012 at 6:40

GoogleCodeExporter commented 9 years ago
I managed to fix this bug by modifying FileTreeModel. I am using the modified 
FileTreeModel in my code now and it works fine.

Attached is the modified FileTreeModel.java

It turns out it's a pretty easy fix.

Original comment by trinisof...@gmail.com on 8 Apr 2012 at 7:00

Attachments:

GoogleCodeExporter commented 9 years ago
If I understand correctly will this solve it?:
                if(!name.endsWith("/")) {
                    name += "/";
                }

Original comment by shai.almog on 8 Apr 2012 at 7:29

GoogleCodeExporter commented 9 years ago
yeap.

Original comment by trinisof...@gmail.com on 9 Apr 2012 at 7:24

GoogleCodeExporter commented 9 years ago
Thanks & again sorry for the delay. This will be in the next drop.
FYI I also fixed the file names to be the name only and not the full path.

Original comment by shai.almog on 9 Apr 2012 at 7:43