Package com.pcmsolutions.system.threads

Examples of com.pcmsolutions.system.threads.ZDefaultThread


        public DeviceCloseBehaviour(DeviceContext device) {
            this.device = device;
        }

        public boolean tryClosing() {
            new ZDefaultThread() {
                public void run() {
                    try {
                        if (device.getState() != ZExternalDevice.STATE_REMOVED)
                            if (UserMessaging.askYesNo("Remove device " + device.getName() + " ?")) {
                                if (device.getState() == ZExternalDevice.STATE_RUNNING)
View Full Code Here


        tabularDeviceConfigReport[5][0] = "";
        tabularDeviceConfigReport[5][1] = "";
    }

    private void stopDeviceThreaded(final String reason) {
        Thread t = new ZDefaultThread("Stop Device") {
            public void run() {
                try {
                    stopDevice(false, reason);
                } catch (IllegalStateTransitionException e) {
                    e.printStackTrace();
                }
            }
        };
        t.start();
    }
View Full Code Here

    public ZCommand[] getZCommands() {
        return cmdProviderHelper.getCommandObjects(this);
    }

    public void SmdiChanged() {
        new ZDefaultThread("Update SMDI") {
            public void run() {
                device.configure();
                try {
                    updateSmdiCoupling();
                } finally {
View Full Code Here

    public ReadablePreset getMostCapableNonContextEditablePresetDowngrade() {
        return this.getContextBasicEditablePresetDowngrade();
    }

    public void performOpenAction() {
        new ZDefaultThread() {
            public void run() {
                try {
                    assertPresetInitialized();
                    getDeviceContext().getViewManager().openPreset(Impl_ContextEditablePreset.this);
                } catch (NoSuchPresetException e) {
View Full Code Here

        public ContextEditablePreset.EditableVoice duplicate() {
            return new Impl_EditableVoice(voice);
        }

        public void performOpenAction() {
            new ZDefaultThread() {
                public void run() {
                    try {
                        assertPresetInitialized();
                        if (getDeviceContext().getDevicePreferences().ZPREF_useTabbedVoicePanel.getValue())
                            getDeviceContext().getViewManager().openTabbedVoice(Impl_ContextEditablePreset.Impl_EditableVoice.this, getDeviceContext().getDevicePreferences().ZPREF_groupEnvelopesWhenVoiceTabbed.getValue(), true);
View Full Code Here

            public void run() {
                try {
                    if (!PresetContextMacros.confirmInitializationOfPresets(currPresets))
                        return;
                    new ZDefaultThread("Operation: Presets referencing current sample selection") {
                        public void run() {
                            try {
                                final ReadablePreset[] filtPresets = PresetContextMacros.filterPresetsReferencingSamples(currPresets, currSamples);
                                if (filtPresets.length == 0) {
                                    UserMessaging.showInfo("Nothing to select");
View Full Code Here

    protected boolean hasDesktopElementsForNextStart() {
        return desktopElementsOnNextStart != null;
    }

    public Thread clearDeviceWorkspace() {
        return new ZDefaultThread() {
            public void run() {
                ViewMediator.modifyBranch(new DesktopBranch(new DesktopElement[]{getDeviceWorkspaceTask().desktopElement}), true, -1);
            }
        };
    }
View Full Code Here

            }
        };
    }

    public Thread openDeviceViews() {
        return new ZDefaultThread() {
            public void run() {
                getDeviceWorkspaceTask().open(false);
                getDeviceTask().open(false);
                getPropertiesTask().open(false);
                getDefaultPresetContextTask().open(false);
View Full Code Here

            e.printStackTrace();
        }
    }

    public Thread activateDevicePalettes() {
        return new ZDefaultThread() {
            public void run() {
                getDeviceTask().open(true);
                getPropertiesTask().open(true);
                getDefaultPresetContextTask().open(true);
                getDefaultSampleContextTask().open(true);
View Full Code Here

            }
        };
    }

    public Thread closeDeviceViews() {
        return new ZDefaultThread() {
            public void run() {
                Thread t = clearDeviceWorkspace();
                t.start();
                while(t.isAlive())
                    try {
View Full Code Here

TOP

Related Classes of com.pcmsolutions.system.threads.ZDefaultThread

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.