I am making a Java Processing project in Processing IDE and would like to spread it across multiple PDE (Processing Source Code) files.
I am unable to import Java Processing Source Code file as a Java class file using import.
config.pde
public int screenWidth = 750;
project.pde
import project.config;
// OR
import project.config.screenWidth;
// OR
import config;
// OR
import config.screenWidth;
returns The import project/config cannot be resolved. respectively.
Do I have to compile PDE files first? Can I set up the Processing IDE to do it automatically for every run?
TLDR;
Having this project folder:
|project
|--project.pde
|--config.pde
How do I use functions and variables from config.pde in project.pde?