2 回答

TA貢獻(xiàn)1821條經(jīng)驗(yàn) 獲得超6個贊
1打開eclipse,建立項(xiàng)目:Test,將struts2相關(guān)jar包導(dǎo)入到其中。在Package Explorer標(biāo)簽欄下操作。
2在此,以查閱struts2中,struts2-core-2.3.12.jar下的源代碼為例。
在Test項(xiàng)目下,找到 Web App Libraries -- struts2-core-2.3.12.jar,右鍵單擊struts2-core-2.3.12.jar,選擇"Properties"
3
在新彈出的對話框中,選擇Java Source Attachment -- External location -- External Floder...4此時,又有新的對話框彈出。找到步驟1中提到的struts2-core-2.3.12.jar的源代碼

TA貢獻(xiàn)1890條經(jīng)驗(yàn) 獲得超9個贊
當(dāng)我們在eclipse中開發(fā)android程序的時候,往往需要看源代碼(可能是出于好奇,可能是讀源碼習(xí)慣),那么如何查看Android源代碼呢? 比如下面這種情況 假設(shè)我們想?yún)⒖碅ctivity類的源代碼,按著Ctrl鍵,左擊它,現(xiàn)實(shí)的結(jié)果卻看不到代碼的
- 2 回答
- 0 關(guān)注
- 518 瀏覽
添加回答
舉報