I'm just getting to know Eclipse, and I'm trying to familiarize myself with how I should handle file organization and importing classes. This is a screenshot of the Package Explorer for reference:
I've got two projects: "CashierSimulation" is a simulation of a cashier (go figure), and "BeanJuice" is a text-based game about coffee. Each of these use some or all of the generic classes that I made, which are located in the "GenericClasses" project file.
Originally, all of the files in all three project files were located in the same project file "BeanJuice", but I decided to separate the simulation files from the game files, and I moved the generic classes to their own project file because they aren't specific to the game.
I've figured out how to import the generic classes to the different project files as needed by referencing this post:
In addition to importing the classes using:
import package.myclass;
each project's properties file had to be updated to include "GenericClasses" in the build path.
Doing all of this worked and got my programs running, but I'm wondering if this is the "correct" way of doing all of this.
Any tips or tricks would be appreciated.