}
Object obj = getModel().getValueAt(row, 0);
Integer[] ids = (Integer[]) idList.toArray(new Integer[idList.size()]);
if (obj instanceof ReadablePreset.ReadableVoice)
return new VoiceParameterSelection((ReadablePreset.ReadableVoice) obj, ids);
else if (obj instanceof ReadablePreset.ReadableVoice.ReadableZone)
return new VoiceParameterSelection(((ReadablePreset.ReadableVoice.ReadableZone) obj).getVoice(), ids, ((ReadablePreset.ReadableVoice.ReadableZone) obj).getZoneParams(ids));
else
throw new IllegalStateException("column 0 is not a voice nor a zone");
}
return null;
}