java 提示----This element has no attached source and the Javadoc could not be found in the attached Javadoc

來源:互聯網
上載者:User

標籤:

This element has no attached source and the Javadoc could not be found in the attached Javadoc。

【注意:此元素沒有附加原始碼,也無法在附加的 Javadoc 中找到 Javadoc。】

解決方案:

用eclipse時,用滑鼠在代碼上移動時,尤其是當滑鼠移動到方法名上的時候,就會在滑鼠附近自動彈出一個資訊列,裡面寫著這個方法是在哪個類裡定義的,以及這個方法的類型,注釋。

今天開啟Eclipse發現把滑鼠移至上方在某個系統類別上不再彈出這些提示了,並給出如下的提示:

Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc

這樣的問題怎麼解決?

在主功能表列中,選擇【Window】-->【Preferences】子功能表;   
在【General】-->【Editors】--->【File Associations】;  
在右側【File types】點【Add...】按鈕在彈出的對話方塊中輸入*.doc尾碼名,點擊確定就可以了。

 

當然,如果有些朋友嫌突然彈出的視窗妨礙視線還影響思路,關閉方法如下:

 Window(視窗)->Preferences(喜好設定)->Java->Editor(編輯器)->Hovers(懸浮提示) 將[Combined Hover](組合的懸浮提示)取消即可 。

java 提示----This element has no attached source and the Javadoc could not be found in the attached Javadoc

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.