// read file for filter
filterItems = new ArrayList<WordPressCompletionItem>();
actionItems = new ArrayList<WordPressCompletionItem>();
FileObject filterXml = null;
FileObject actionXml = null;
PhpModule phpModule = PhpModule.Factory.inferPhpModule();
// TODO improve for each locales
// String locale = "";
// use custom file
if (phpModule != null) {
FileObject projectDirectory = phpModule.getProjectDirectory();
filterXml = projectDirectory.getFileObject(CUSTOM_FILTER_CODE_COMPLETION_XML);
actionXml = projectDirectory.getFileObject(CUSTOM_ACTION_CODE_COMPLETION_XML);
}
// TODO improve loop
InputStream filterInputStream = null;