private static final String AUTO_COMPLETE_FILE = AUTO_COMPLETE_FILE_NAME + ".php"; // NOI18N
private static final String AUTO_COMPLETE_TEMPLATE_PATH = "org-nbphpcouncil-modules-php-laravel4/__l4_auto_complete__.php"; // NOI18N
public static void generateAutoCompletionFile(PhpModule phpModule) {
Project project = PhpProjectSupport.getProject(phpModule.getSourceDirectory());
FileObject projectDirectory = project.getProjectDirectory();
FileObject nbProjectDirectory = PhpProjectSupport.getNbProjectDirectory(projectDirectory);
if (nbProjectDirectory != null) {
FileObject autoCompleteTemplateFile = FileUtil.getConfigFile(AUTO_COMPLETE_TEMPLATE_PATH);
if (autoCompleteTemplateFile != null) {
Map<String, Object> parameters = new HashMap<String, Object>();
try {
FileObject autoCompleteDirectory = getAutoCompleteDirectory(nbProjectDirectory);
File autoCompleteFile = new File(autoCompleteDirectory.getPath(), AUTO_COMPLETE_FILE);
if (autoCompleteFile.exists()) {
autoCompleteFile.delete();
}