Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse plugin "Operation not enabled"

I'm struggling with Java Refactoring - I need to write an Eclipse plug-in which will refactor some code. It's really difficult for me and it would be way easier if I could follow working code step - by - step. The only alike example I could find is a sample Introduce Indirection.

Unfortunately I cannot make it actually work. I get "chosen operation is not currently available" information anytime I try it.

I've imported code, "Run As -> Eclipse App" and than tried to use Introduce Ind. from Eclipse Articles. What am I doing wrong?

I'll be happy with any help :).

like image 929
mary jane Avatar asked Apr 20 '26 22:04

mary jane


1 Answers

Check your handler class for isEnabled() method. I suppose when creating new handler the default value for this method returns false. That can be the issue.

like image 67
alpert Avatar answered Apr 23 '26 12:04

alpert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!