DirectoryWorkType wtd = (DirectoryWorkType) DirectoryLocator.getDirectory(DirectoryWorkType.class, false);
Selector<DirectoryWorkTypeItem> workTypes = wtd.getItems();
for(int i=0; i<workTypes.size(); i++) {
DirectoryWorkTypeItem item = workTypes.get(i);
if(item.isAvailiable()) {
wtmodel.addElement(item);
}
}
wtmodel.setSelectedItem(null);
wtmodel.addVetoableComboBoxListener(workTypeProcess);
workTypesCombo.setModel(wtmodel);