이클립스 getter setter
![[eclipse] 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. 에러 해결](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fbodq6j%2FbtrwonE0HBh%2FCZ3zATVXKKuDp43sYp7VIk%2Fimg.png)
[eclipse] 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. 에러 해결
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의 자리가 올바르지 않은 경우이다. 제대로 포커스를 맞추고 실행하도록 하자 ^^