Examples of ZDBModifyThread


Examples of com.pcmsolutions.system.threads.ZDBModifyThread

        ampModels = ParameterModelUtilities.getEditableParameterModelGroups(voices, (Integer[]) ampIds.toArray(new Integer[ampIds.size()]));

        Action r1t = new AbstractAction() {

            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Refresh Amplifier") {
                    public void run() {
                        try {
                            voices[0].getPreset().refreshVoiceParameters(voices[0].getVoiceNumber(), (Integer[]) ampIds.toArray(new Integer[ampIds.size()]));
                        } catch (NoSuchContextException e1) {
                            e1.printStackTrace();
View Full Code Here

Examples of com.pcmsolutions.system.threads.ZDBModifyThread

    }

    public MultiModeEditorPanel init(final DeviceContext device, boolean just16, Action utilityAction) throws ZDeviceNotRunningException {
        AbstractAction rmm = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Refresh Multimode") {
                    public void run() {
                        try {
                            device.getMultiModeContext().refresh();
                        } catch (ZDeviceNotRunningException e1) {
                            e1.printStackTrace();
View Full Code Here

Examples of com.pcmsolutions.system.threads.ZDBModifyThread

    public DefaultPresetViewerPanel(ReadablePreset p) throws ZDeviceNotRunningException {
        this.preset = p;
        rp = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Refresh Preset") {
                    public void run() {
                        try {
                            preset.refreshPreset();
                        } catch (Exception e1) {
                            e1.printStackTrace();
View Full Code Here

Examples of com.pcmsolutions.system.threads.ZDBModifyThread

            throw e;
        }

        Action ra = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Refresh Filter") {
                    public void run() {
                        try {
                            voice.getPreset().refreshVoiceParameters(voice.getVoiceNumber(), (Integer[]) filterIds.toArray(new Integer[filterIds.size()]));
                        } catch (NoSuchContextException e1) {
                            e1.printStackTrace();
View Full Code Here

Examples of com.pcmsolutions.system.threads.ZDBModifyThread

            ZUtilities.zDisposeCollection(Arrays.asList(cordModels));
            throw e;
        }
        Action rct = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Refresh CORDS") {
                    public void run() {
                        try {
                            voice.getPreset().refreshVoiceParameters(voice.getVoiceNumber(), cordIds);
                        } catch (NoSuchContextException e1) {
                            e1.printStackTrace();
View Full Code Here

Examples of com.pcmsolutions.system.threads.ZDBModifyThread

            throw e;
        }

        Action r1t = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Refresh Amplifier") {
                    public void run() {
                        try {
                            voice.getPreset().refreshVoiceParameters(voice.getVoiceNumber(), (Integer[]) ampIds.toArray(new Integer[ampIds.size()]));
                        } catch (NoSuchContextException e1) {
                            e1.printStackTrace();
View Full Code Here

Examples of com.pcmsolutions.system.threads.ZDBModifyThread

        shapeModelIndex1 = ParameterModelUtilities.indexOfId(lfo1Models, ID.lfo1Shape);
        shapeModelIndex2 = ParameterModelUtilities.indexOfId(lfo2Models, ID.lfo2Shape);

        Action r1t = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Refresh LFO 1") {
                    public void run() {
                        try {
                            voices[0].getPreset().refreshVoiceParameters(voices[0].getVoiceNumber(), (Integer[]) lfo1Ids.toArray(new Integer[lfo1Ids.size()]));
                        } catch (NoSuchContextException e1) {
                            e1.printStackTrace();
                        } catch (PresetEmptyException e1) {
                            e1.printStackTrace();
                        } catch (NoSuchPresetException e1) {
                            e1.printStackTrace();
                        } catch (NoSuchVoiceException e1) {
                            e1.printStackTrace();
                        } catch (ParameterValueOutOfRangeException e1) {
                            e1.printStackTrace();
                        } catch (IllegalParameterIdException e1) {
                            e1.printStackTrace();
                        }
                    }
                }.start();
            }
        };
        r1t.putValue("tip", "Refresh LFO 1");
        Action r2t = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Refresh LFO 2") {
                    public void run() {
                        try {
                            voices[0].getPreset().refreshVoiceParameters(voices[0].getVoiceNumber(), (Integer[]) lfo2Ids.toArray(new Integer[lfo2Ids.size()]));
                        } catch (NoSuchContextException e1) {
                            e1.printStackTrace();
View Full Code Here

Examples of com.pcmsolutions.system.threads.ZDBModifyThread

        filterModels = ParameterModelUtilities.getEditableParameterModelGroups(voices, (Integer[]) filterIds.toArray(new Integer[filterIds.size()]));

        Action ra = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Refresh Filter") {
                    public void run() {
                        try {
                            voices[0].getPreset().refreshVoiceParameters(voices[0].getVoiceNumber(), (Integer[]) filterIds.toArray(new Integer[filterIds.size()]));
                        } catch (NoSuchContextException e1) {
                            e1.printStackTrace();
View Full Code Here

Examples of com.pcmsolutions.system.threads.ZDBModifyThread

        final JMenu freeMem = new JMenu("");
        freeMem.setEnabled(false);
        freeMemTimer = new Timer(freeMemInterval, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Preset Memory Monitor") {
                    public void run() {
                        try {
                            final Remotable.PresetMemory pm = presetContext.getDeviceContext().getPresetMemory();
                            SwingUtilities.invokeLater(new Runnable() {
                                public void run() {
View Full Code Here

Examples of com.pcmsolutions.system.threads.ZDBModifyThread

            throw e;
        }

        Action r1t = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Refresh LFO 1") {
                    public void run() {
                        try {
                            voice.getPreset().refreshVoiceParameters(voice.getVoiceNumber(), (Integer[]) lfo1Ids.toArray(new Integer[lfo1Ids.size()]));
                        } catch (NoSuchContextException e1) {
                            e1.printStackTrace();
                        } catch (PresetEmptyException e1) {
                            e1.printStackTrace();
                        } catch (NoSuchPresetException e1) {
                            e1.printStackTrace();
                        } catch (NoSuchVoiceException e1) {
                            e1.printStackTrace();
                        } catch (ParameterValueOutOfRangeException e1) {
                            e1.printStackTrace();
                        } catch (IllegalParameterIdException e1) {
                            e1.printStackTrace();
                        }
                    }
                }.start();
            }
        };
        r1t.putValue("tip", "Refresh LFO 1");
        Action r2t = new AbstractAction() {
            public void actionPerformed(ActionEvent e) {
                new ZDBModifyThread("Refresh LFO 2") {
                    public void run() {
                        try {
                            voice.getPreset().refreshVoiceParameters(voice.getVoiceNumber(), (Integer[]) lfo2Ids.toArray(new Integer[lfo2Ids.size()]));
                        } catch (NoSuchContextException e1) {
                            e1.printStackTrace();
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.