I want to change the definition of all classes in my project that extend a certain interface.
Let's say I want to change all classes that are defined like this:
public class MyClass implements MyInterface
class MyClass implements MyInterface
How can I do this using structural search and replace? I've tried using this pair for find/replace:
public class $NAME$ implements MyInterface
class $NAME$ implements MyInterface
What happens when I run this, though, is that the entire class definition is replaced by the latter term. How can I get this to do what I want?