public DatasetType getSelectedDatasetType() {
    DatasetType type = DatasetType.TOPOLOGY;
    try {
      ComboBoxItem item = this.getSelectedItemObject();
      type = (DatasetType) item.getData();
    } catch (Exception ex) {
      Application.getActiveApplication().getOutput().output(ex);
    }

    return type;
  }
 public void setSelectedItemData(Object value) {
   if (value != null) {
     for (int i = 0; i < this.getItemCount(); i++) {
       ComboBoxItem item = (ComboBoxItem) this.getItemAt(i);
       if (item.getData().toString().equals(value.toString())) {
         this.setSelectedItemObject(item);
         break;
       }
     }
   } else {
     this.setSelectedItemObject(null);
   }
 }
 public void setSelectedDatasetType(DatasetType value) {
   try {
     ComboBoxItem selectedItem = null;
     for (int i = 0; i < this.getItemCount(); i++) {
       ComboBoxItem item = (ComboBoxItem) this.getItemAt(i);
       if (value == (DatasetType) item.getData()) {
         selectedItem = item;
         break;
       }
     }
     this.setSelectedItemObject(selectedItem);
   } catch (Exception ex) {
     Application.getActiveApplication().getOutput().output(ex);
   }
 }