Reputation: 239
My problem is with Eclipse, something that seems super simple but I just don't know enough to figure out how to do it. I want to put the subclasses of the objects I have created into folders in the default package to organize them so I don't have dozens of objects jumbled together, but when I create a new folder in the Package Explorer and drop them in, they no longer connect to the superclasses. How do I connect them?
Upvotes: 1
Views: 1078
Reputation: 63
Create packages to organize your classes not folders.
Folders are created to store app resources, e.g., images and icons.
Right-click on your project's src
node in the Package Explorer, then New -> Other -> Package
.
Having created your packages and moved your classes under them, you should then organize the imports.
You do this by opening each class file and hitting the key combination Ctrl+Shift+O
.
Upvotes: 2