}
// Get the project the user is referencing
Project proj = getAppropriateProject(isMainMenuRequest(e));
MainFileProvider provider = getMainFile(proj);
if(!isProjectSetupCorrectly(provider)) {
return;
}
SodbeansAction.server.setProject(proj);
SodbeansAction.server.setProvider(provider);
projectRequestedToRun = proj;
// Compile the project and display the message
compiler.setBuildFolder(provider.getBuildDirectory());
compiler.setDistributionFolder(provider.getDistributionDirectory());
compiler.clearDependencies();
SodbeansBuildAction.addCompilerDependencies(compiler);
buildRequested = true;
compiler.compile(proj);