[android-beginners] Re: import an existing project
I fail to understand your point. Have directories as src/com/company/project is the right way to organize the sources. Am I missing something? R/ On Thu, May 14, 2009 at 7:40 PM, Xian Chen hoganx...@gmail.com wrote: Hello, This would be silly question... When I trying to import an existing project into Eclipse, the package structure is totally mess up. For eg. the package structure looks like this: com.company.project and the folders are: src/com/company/project The src in Eclipse would be these: com, com.company, com.company.project. In another way, the Eclipse treat com, com.company as sepearte packages instead of folders. Any ideas? Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: import an existing project
My question is com, com.company are also resolved as packages as shown in the attachment. How can I avoid this problem? Thanks, On Sat, May 16, 2009 at 5:45 PM, Raphael r...@android.com wrote: I fail to understand your point. Have directories as src/com/company/project is the right way to organize the sources. Am I missing something? R/ On Thu, May 14, 2009 at 7:40 PM, Xian Chen hoganx...@gmail.com wrote: Hello, This would be silly question... When I trying to import an existing project into Eclipse, the package structure is totally mess up. For eg. the package structure looks like this: com.company.project and the folders are: src/com/company/project The src in Eclipse would be these: com, com.company, com.company.project. In another way, the Eclipse treat com, com.company as sepearte packages instead of folders. Any ideas? Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~--- attachment: Picture 1.png
[android-beginners] Re: import an existing project
Oh I see. That's just how Eclipse displays it. Right on top of the tree find the little triangle icon, in the menu change the view to Package Representation Hierarchical. HTH R/ On Sat, May 16, 2009 at 3:26 PM, Xian Chen hoganx...@gmail.com wrote: My question is com, com.company are also resolved as packages as shown in the attachment. How can I avoid this problem? Thanks, On Sat, May 16, 2009 at 5:45 PM, Raphael r...@android.com wrote: I fail to understand your point. Have directories as src/com/company/project is the right way to organize the sources. Am I missing something? R/ On Thu, May 14, 2009 at 7:40 PM, Xian Chen hoganx...@gmail.com wrote: Hello, This would be silly question... When I trying to import an existing project into Eclipse, the package structure is totally mess up. For eg. the package structure looks like this: com.company.project and the folders are: src/com/company/project The src in Eclipse would be these: com, com.company, com.company.project. In another way, the Eclipse treat com, com.company as sepearte packages instead of folders. Any ideas? Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: import an existing project
This confused me the first time I used eclipse, but yes, empty packages (including tld's) are shown in the package view. I believe this is partly to allow easy copy/move refactoring of classes across the entire namespace. On May 16, 2009 11:28 PM, Raphael r...@android.com wrote: Oh I see. That's just how Eclipse displays it. Right on top of the tree find the little triangle icon, in the menu change the view to Package Representation Hierarchical. HTH R/ On Sat, May 16, 2009 at 3:26 PM, Xian Chen hoganx...@gmail.com wrote: My question is com, co... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: import an existing project
There's also an option in the little menu at the top of the tree to hide empty packages. However when you do that you can't anymore right click on an empty package to make a class in it. That's not too much of any issue though, just invoke the class wizard from another wizard and then change the package line manually. R/ On Sat, May 16, 2009 at 4:05 PM, Sean Hodges seanhodge...@googlemail.com wrote: This confused me the first time I used eclipse, but yes, empty packages (including tld's) are shown in the package view. I believe this is partly to allow easy copy/move refactoring of classes across the entire namespace. On May 16, 2009 11:28 PM, Raphael r...@android.com wrote: Oh I see. That's just how Eclipse displays it. Right on top of the tree find the little triangle icon, in the menu change the view to Package Representation Hierarchical. HTH R/ On Sat, May 16, 2009 at 3:26 PM, Xian Chen hoganx...@gmail.com wrote: My question is com, co... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: import an existing project
This kind of problem exist if u import project from a svn, won't break your build On May 14, 2009 7:40 PM, Xian Chen hoganx...@gmail.com wrote: Hello, This would be silly question... When I trying to import an existing project into Eclipse, the package structure is totally mess up. For eg. the package structure looks like this: com.company.project and the folders are: src/com/company/project The src in Eclipse would be these: com, com.company, com.company.project. In another way, the Eclipse treat com, com.company as sepearte packages instead of folders. Any ideas? Thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Beginners group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---