eclipse 에서 getter / setter 를 자동 생성해주는 기능을 사용하려 할 때 해당 에러를 만날 때가 있다.
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.
이는 올바른 포커스에서 기능을 사용하지 않았기 때문이다.
필자처럼. .class 내부가 아닌 외부로 선택되어져 있는 경우 getter와 setter의 자리가 올바르지 않은 경우이다.
제대로 포커스를 맞추고 실행하도록 하자 ^^
'IDE > eclipse' 카테고리의 다른 글
[eclipse] error running Gradle test : No matching tests found in any candidate test task. (0) | 2022.06.07 |
---|---|
[eclipse] An error has occurred. See error log for more details. java.lang.NullPointerException (0) | 2022.01.22 |
[eclipse] 프로젝트 유형 변경하기 (0) | 2021.10.05 |
[eclipse/github] nothing to fetch 에러 (0) | 2021.08.20 |
[eclipse] Editor does not contain a main type 에러 해결 (0) | 2021.08.18 |