Quick Subclass in Eclipse

Calling all Eclipse gurus….

What is the easiest/quickest way to create a subclass of a class open for editing in the Java Perspective.

I have a class open for editing in my Java perspective. I have the class name highlighted and would like to right-click on the class name and then from the “Refactor” option I would like to click something like “create a Subclass”.

An added bonus would be if somebody would recommend some good Eclipse reference sites/blogs/forums out there….


2 replies on “Quick Subclass in Eclipse”

I would try just choosing the package in the tree, right clicking and creating a new java class. Then choose the current class as the new class’s parent class.

I don’t know if there is a quicker way….

And if you don’t use the “control-shift-r” shortcut to open files, you should try to use it a few times. It’s the only way I open existing files now. 🙂

Take care,

Ok, your tip is about what I’m getting from my local Java buddies here in Dallas.

I like the “Ctrl-Shift-r” tip.’ An old co-worker told me about using “open resource” to quickly open files, but to get to the dialog box was slow. I’ll definitely use Ctrl-Shift-r.


Leave a Reply

Your email address will not be published. Required fields are marked *