use of org.jkiss.wmi.service.WMIQualifiedObject in project dbeaver by serge-rider.
the class WMIPropertySource method getPropertyDescriptors2.
@Override
public DBPPropertyDescriptor[] getPropertyDescriptors2() {
try {
WMIQualifiedObject qualifiedObject = getQualifiedObject();
if (qualifiedObject == null) {
return EMPTY_PROPERTIES;
}
Collection<WMIQualifier> qualifiers = qualifiedObject.getQualifiers();
DBPPropertyDescriptor[] result = new DBPPropertyDescriptor[qualifiers.size()];
int index = 0;
for (WMIQualifier qualifier : qualifiers) {
String name = qualifier.getName();
PropertyDescriptor prop = new PropertyDescriptor("WMI", name, name, null, null, false, null, null, false);
result[index++] = prop;
}
return result;
} catch (WMIException e) {
log.error(e);
return EMPTY_PROPERTIES;
}
}
Aggregations