码迷,mamicode.com
首页 > 移动开发 > 详细

JAVA错误提示:The operation is not applicable to the current selection.Select a field which is not declared as type variable or a type that declares such fields.

时间:2019-10-11 00:36:30      阅读:224      评论:0      收藏:0      [点我收藏+]

标签:declared   which   select   bsp   sel   The   图片   mamicode   var   

  平时没怎么注意,今天用Eclipse自动生成Set Get方法时提示错误,错误信息如下:

The operation is not applicable to the current selection.Select a field which is not declared as type variable or a type that declares such fields.

技术图片

 

 原因:

技术图片

 

解决方案:将光标定位到类内部自动生成Set、Get即可

 技术图片

JAVA错误提示:The operation is not applicable to the current selection.Select a field which is not declared as type variable or a type that declares such fields.

标签:declared   which   select   bsp   sel   The   图片   mamicode   var   

原文地址:https://www.cnblogs.com/chenyanbin/p/11651363.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!