Integer index = IntPool.get(1);
if (spkg.getHeader().getPhysicalSampleCount() > 0)
try {
ReadableSample[] samples = SampleContextMacros.getContextUserSamples(preset.getDeviceContext().getDefaultSampleContext());
//int res = UserMessaging.askOptions("Select sample position to load package samples at", "Sample", samples);
ReadableSample s = (ReadableSample) JOptionPane.showInputDialog(ZoeosFrame.getInstance(), "Sample?", "Select sample position to load the package samples to", JOptionPane.QUESTION_MESSAGE, null, samples, samples[0]);
if (s == null)
return;
index = s.getSampleNumber();
} catch (HeadlessException e) {
throw new CommandFailedException("internal error");
} catch (NoSuchContextException e) {
throw new CommandFailedException("problem with sample context");
} catch (ZDeviceNotRunningException e) {