0

Can anyone tell me how to turn off the auto replace/refactoring/correction feature in Eclipse specifically in Oxygen?

Let me explain my situation. I have a class Device.

public class Device extends Model {}

Now when I try to write-

List<Device> devices = Device.findAll();

Eclipse replaces it to-

List<Device> devices = Model.findAll();

Now I do not want that. How can I stop Eclipse from being too smart?

Seeker
  • 126
  • 2
  • 8

1 Answers1

2

It's actually a "save action" that's responsible for this: Window -> save actions -> configure -> in the 'Member Accesses' tab, there's a 'Static accesses' section, and within it a 'change all accesses through subtypes' that you'll want to un-check to see the magic happen.

enter image description here

HBo
  • 635
  • 6
  • 16
  • For Oxygen, the Workflow is - _Window_ --> _Preferences_ --> _Java_ --> _Editor_ --> _Save Actions_ --> _Configure_ --> _Member Accesses_ then **uncheck** the _Change all accesses through subtypes_. – Seeker Apr 10 '18 at 03:51