return new IDynOptionsProvider() {
@Override
public String[] getOptionValues() {
try {
IDfDocbaseMap map = DctmDriver.getDocbases();
String out[] = new String[map.getDocbaseCount()];
for ( int i = 0; i < map.getDocbaseCount(); i++ )
out[i] = map.getDocbaseName(i);
return out;
} catch (DfException e) {
log.info(e);
}
return null;
}
@Override
public String[] getOptionTitles() {
try {
IDfDocbaseMap map = DctmDriver.getDocbases();
String out[] = new String[map.getDocbaseCount()];
for ( int i = 0; i < map.getDocbaseCount(); i++ )
out[i] = map.getDocbaseName(i) + " (" + map.getDocbaseDescription(i) +")";
return out;
} catch (DfException e) {
log.info(e);
}
return null;