protected JMenuItem[] getCustomMenuItems() {
JMenuItem smi = null;
Object[] selObjs = ZUtilities.eliminateInstances(this.getSelObjects(), String.class);
try {
SampleContext sc = preset.getDeviceContext().getDefaultSampleContext();
if (ClassUtility.areAllInstanceOf(selObjs, ReadableParameterModel.class)) {
ReadableParameterModel[] models = (ReadableParameterModel[]) Arrays.asList(selObjs).toArray(new ReadableParameterModel[selObjs.length]);
if (ParameterModelUtilities.areAllOfId(models, 38) && !ParameterModelUtilities.areAllOfValue(models, 0)) {
Set s = ParameterModelUtilities.getValueSet(models);
ReadableSample[] samples = new ReadableSample[s.size()];
int si = 0;
for (Iterator i = s.iterator(); i.hasNext();)
samples[si++] = convertPassThroughSample(sc.getReadableSample((Integer) i.next()));
String mstr;
if (samples.length == 1)
mstr = samples[0].getSampleDisplayName();
else
mstr = "Selected samples";