IResource resource = (IResource) selectedObjects[i];
WodParserCache cache = WodParserCache.parser(resource);
List<BindingValueKey> bindingKeys = BindingReflectionUtils.getBindingKeys(cache.getJavaProject(), cache.getComponentType(), "", false, BindingReflectionUtils.MUTATORS_ONLY, false, WodParserCache.getTypeCache());
IFile apiFile = cache.getApiFile();
ApiModel apiModel = new ApiModel(apiFile);
Wo wo = apiModel.getWo();
for (BindingValueKey binding : bindingKeys) {
if (!BindingReflectionUtils.isSystemBindingValueKey(binding, true)) {
String bindingName = binding.getBindingName();
wo.createBinding(bindingName);
}
}
apiModel.saveChanges();
}
}