Examples of ReadableSample


Examples of com.pcmsolutions.device.EMU.E4.sample.ReadableSample

        if (newSelection)
            this.clearSelection();
        String name;
        Integer firstSelectedSample = null;
        for (int i = 0,j = sctm.getRowCount(); i < j; i++) {
            ReadableSample sample = (ReadableSample) sctm.getValueAt(i, 1);
            try {
                if (useDisplayName)
                    name = sample.getSampleDisplayName();
                else
                    name = sample.getSampleName();
            } catch (NoSuchSampleException e) {
                continue;
            } catch (SampleEmptyException e) {
                name = DeviceContext.EMPTY_SAMPLE;
            }
            m = p.matcher(name);
            boolean res = false;
            if (fullMatch)
                res = m.matches();
            else
                res = m.find();
            if (res) {
                if (firstSelectedSample == null)
                    firstSelectedSample = sample.getSampleNumber();
                this.addRowSelectionInterval(i, i);
                this.addColumnSelectionInterval(0, 0);
            }
        }
        return firstSelectedSample;
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.sample.ReadableSample

                    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) {
View Full Code Here

Examples of com.pcmsolutions.device.EMU.E4.sample.ReadableSample

    public void execute(Object invoker, Object[] arguments) throws IllegalArgumentException, CommandFailedException  // IllegalArgumentException thrown for insufficient number of arguments
    {
        com.pcmsolutions.device.EMU.E4.sample.ReadableSample[] samples = getTargets();
        int num = samples.length;
        ReadableSample p;
        try {
            if (num == 0) {
                // try use primary target
                p = getTarget();
                refreshSample(p);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.