views:

89

answers:

3

My immediate need is to take a peek at the source for EditTextPreference and see what I need to do to implement support for preferences with more structure. Can I run Git or repo under cygwin perhaps? Is there an easier way?

+3  A: 

If you just need to have a look at a single file you can use the web interface at http://android.git.kernel.org/

If you want to check out the source tree you can use http://code.google.com/p/msysgit/

You probably want an ide to browse the code, so using the open source Eclipse or the free Intellij Community edition is recommended. In that case they both contain built-in git clients that you can use.

Løkling
Eclipse doesn't have git built-in, but there is at least one plugin that you can use. I don't know about IntelliJ.
MatrixFrog
Thanks, my error. Intellij user :-)
Løkling
+2  A: 

The Source Code is provided by the Android Open Source Project. Inside the Page (Tab 'Source' -> Left Menu "Browse Source") you find a link to browse the Source. The link will lead you to a git repository. There is a "search" field and I found 'EditTextPreference' using this field with the 'grep' option.

K. Claszen
A: 

You can, in fact, run repo under cygwin. I blogged about this just a few days ago. There's some tips in the other tips in the series on what packages to install (short answer, git, python, gnupg) and how to get Windows to deal with case sensitive file naming and paths.

johnqcoder