Examples of checkExecutable()


Examples of net.ishchenko.idea.nginx.platform.PlatformDependentTools.checkExecutable()

        if (vfile == null) {
            throw new RuntimeConfigurationException(NginxBundle.message("run.error.badpath"));
        } else {

            PlatformDependentTools pdt = ApplicationManager.getApplication().getComponent(PlatformDependentTools.class);
            if (!pdt.checkExecutable(vfile)) {
                throw new RuntimeConfigurationException(NginxBundle.message("run.error.notexecutable"));
            }

        }
View Full Code Here

Examples of net.ishchenko.idea.nginx.platform.PlatformDependentTools.checkExecutable()

    public synchronized void apply() throws ConfigurationException {

        PlatformDependentTools pdt = ApplicationManager.getApplication().getComponent(PlatformDependentTools.class);
        for (int i = 0; i < serverList.getModel().getSize(); i++) {
            NginxServerDescriptor descriptor = (NginxServerDescriptor) serverList.getModel().getElementAt(i);
            if (!pdt.checkExecutable(descriptor.getExecutablePath())) {
                serverList.setSelectedIndex(i);
                throw new ConfigurationException(NginxBundle.message("run.error.badpath"));
            }
        }
View Full Code Here

Examples of net.ishchenko.idea.nginx.platform.PlatformDependentTools.checkExecutable()

        if (vfile == null) {
            throw new RuntimeConfigurationException(NginxBundle.message("run.error.badpath"));
        } else {

            PlatformDependentTools pdt = ApplicationManager.getApplication().getComponent(PlatformDependentTools.class);
            if (!pdt.checkExecutable(vfile)) {
                throw new RuntimeConfigurationException(NginxBundle.message("run.error.notexecutable"));
            }

        }
View Full Code Here

Examples of net.ishchenko.idea.nginx.platform.PlatformDependentTools.checkExecutable()

    public synchronized void apply() throws ConfigurationException {

        PlatformDependentTools pdt = ApplicationManager.getApplication().getComponent(PlatformDependentTools.class);
        for (int i = 0; i < serverList.getModel().getSize(); i++) {
            NginxServerDescriptor descriptor = (NginxServerDescriptor) serverList.getModel().getElementAt(i);
            if (!pdt.checkExecutable(descriptor.getExecutablePath())) {
                serverList.setSelectedIndex(i);
                throw new ConfigurationException(NginxBundle.message("run.error.badpath"));
            }
        }
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.