public Object[] getElements(Object inputElement) {
Object[] wodBindings = null;
_api = null;
if (inputElement instanceof IWodElement) {
IWodElement wodElement = (IWodElement) inputElement;
if (wodElement == null) {
wodBindings = new IWodBinding[0];
} else {
if (_cache != null && _api == null) {
try {
_api = wodElement.getApi(_javaProject, _cache);
} catch (Exception e) {
_api = null;
ComponenteditorPlugin.getDefault().log("Failed to load API for WO.", e);
}
}
wodBindings = wodElement.getApiBindings(_api);
}
} else {
wodBindings = new IWodBinding[0];
}
return wodBindings;