2014年2月21日 星期五

Java Source Code Attachment in Eclipse

How to change Eclipse's “associated source” for debugging?

In the package explorer, where the jar is in a library (JRE, Maven dependencies, etc...);
right click => properties => java source attachment.

Alternately in the project properties => Java build path => Library tab => select the jar => edit.

====
http://www.cavdar.net/2008/07/14/3-ways-of-jdk-source-code-attachment-in-eclipse/     (for eclipse 3.4)
as for eclipse 4.3.1, only method 1 works.

打開某class   (e.g. import android.app.ActionBar; )
會跳出 source file not found錯誤訊息的那頁 有個可以讓你設定的按鈕
"change attached source"

External Folder
choose
<sdk>\sources\android-19

=========

不必再用External File (add external jar)

即以下都不必做  (不必再另外下載jar檔)

browse android source eclipse
Where can I browse Android source code on-line
http://stackoverflow.com/questions/449763/where-can-i-browse-android-source-code-on-line


I usually refer this site for the android source code.
http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/4.0.3_r1/
http://grepcode.com/snapshot/repository.grepcode.com/java/root/jdk/openjdk/7-b147/

// http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android-apps/4.2.2_r1



沒有留言:

張貼留言