Package com.pcmsolutions.device.EMU.E4.sample

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


        if (newSelection)
            this.clearSelection();
        String name;
        Integer firstSelectedPreset = null;
        for (int i = 0,j = pctm.getRowCount(); i < j; i++) {
            ReadablePreset preset = (ReadablePreset) pctm.getValueAt(i, 1);
            try {
                if (useDisplayName)
                    name = preset.getPresetDisplayName();
                else
                    name = preset.getPresetName();
            } catch (NoSuchPresetException e) {
                continue;
            } catch (PresetEmptyException e) {
                name = DeviceContext.EMPTY_PRESET;
            }
            m = p.matcher(name);

            boolean res = false;
            if (fullMatch)
                res = m.matches();
            else
                res = m.find();

            if (res) {
                if (firstSelectedPreset == null)
                    firstSelectedPreset = preset.getPresetNumber();
                this.addRowSelectionInterval(i, i);
                this.addColumnSelectionInterval(0, 0);
            }
        }
        return firstSelectedPreset;
View Full Code Here


            for (int i = 0; i < destSamples.length; i++)
                sendSample(destSamples[i], is.getLocalFile(), destNames[i]);
        }

        public void copySample(Integer srcSample, Integer[] destSamples, String[] destNames) throws SampleMediator.SampleMediationException {
            SampleRetrievalInfo sri = new Impl_SampleRetrievalInfo(srcSample);
            retrieveSample(sri);
            for (int i = 0; i < destSamples.length; i++)
                if (srcSample.intValue() != destSamples[i].intValue())
                    sendSample(destSamples[i], sri.getFile(), destNames[i]);
        }
View Full Code Here

    public void eraseSample() throws NoSuchSampleException, SampleEmptyException {
        try {
            sc.eraseSample(sample);
        } catch (com.pcmsolutions.device.EMU.E4.preset.NoSuchContextException e) {
            throw new NoSuchSampleException(sample);
        }
    }
View Full Code Here

    public void setSampleName(String name) throws NoSuchSampleException, SampleEmptyException {
        try {
            sc.setSampleName(sample, name);
        } catch (com.pcmsolutions.device.EMU.E4.preset.NoSuchContextException e) {
            throw new NoSuchSampleException(sample);
        }
    }
View Full Code Here

    public boolean sampleEmpty(Integer sample) throws NoSuchSampleException {
        try {
            return sc.isSampleEmpty(sample);
        } catch (NoSuchContextException e) {
            throw new NoSuchSampleException(sample);
        }
    }
View Full Code Here

        if (!assertContext(sc))
            throw new NoSuchContextException();

        Map samples = (Map) sc2s.get(sc);
        if (!samples.containsKey(sample))
            throw new NoSuchSampleException(sample);

        releaseSample(sc, sample);
    }
View Full Code Here

            throw new NoSuchContextException();

        SampleContext npc;
        for (int n = 0; n < samples.length; n++)
            if (!hasSample(sc, samples[n]))
                throw new NoSuchSampleException(samples[n]);

        npc = scf.newSampleContext(name, this);
        createContext(sc, npc);

        for (int n = 0; n < samples.length; n++)
View Full Code Here

        if (!assertContext(src)) {
            throw new NoSuchContextException();
        }
        for (int n = 0; n < samples.length; n++)
            if (!hasSample(src, samples[n]))
                throw new NoSuchSampleException(samples[n]);
        for (int n = 0; n < samples.length; n++)
            removeSampleFrom(src, samples[n]);
    }
View Full Code Here

        if (!assertContext(dest)) {
            throw new NoSuchContextException();
        }
        for (int n = 0; n < samples.length; n++)
            if (!readsSample(dest, samples[n]))
                throw new NoSuchSampleException(samples[n]);
        for (int n = 0; n < samples.length; n++)
            addSampleTo(dest, samples[n]);
    }
View Full Code Here

    }

    public boolean isSampleInitialized(Integer sample) throws NoSuchSampleException {
        Object o = s2sobj.get(sample);
        if (o == null)
            throw new NoSuchSampleException(sample);
        if (o instanceof UninitSampleObject)
            return false;
        return true;
    }
View Full Code Here

TOP

Related Classes of com.pcmsolutions.device.EMU.E4.sample.NoSuchSampleException

Copyright © 2018 www.massapicom. 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.