List<Bundle> bundles = model.findBundles(project);
List<TransUnit> units = model.findTranslations(project.getPath());
for (TransUnit unit : units) {
Bundle targetBundle = null;
for (Bundle bundle : bundles) {
if (unit.path.startsWith(bundle.getTranslationPath())) {
targetBundle = bundle;
break;
}
}
if (targetBundle.getScriptProject() == null) {
targetBundle.setProject(project);
}
if (targetBundle != null && CodeAssistUtils.startsWithIgnoreCase(unit.name, prefix)) {
Translation trans = new Translation(targetBundle,unit);
reporter.reportType(trans, "", range);