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](组合的悬浮提示)取消即可 。

相关文章:

  • 2021-05-08
  • 2021-06-24
  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2021-09-23
  • 2021-10-19
  • 2022-01-14
猜你喜欢
  • 2022-02-19
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案