Examples of NginxServersConfiguration


Examples of net.ishchenko.idea.nginx.configurator.NginxServersConfiguration

    }

    @Override
    public void checkConfiguration() throws RuntimeConfigurationException {

        NginxServersConfiguration config = NginxServersConfiguration.getInstance();
        NginxServerDescriptor descriptor = config.getDescriptorById(serverDescriptorId);
        if (descriptor == null) {
            throw new RuntimeConfigurationException(NginxBundle.message("run.error.noserver"));
        }

View Full Code Here

Examples of net.ishchenko.idea.nginx.configurator.NginxServersConfiguration

        }

        public void resetEditorFrom(NginxRunConfiguration configuration) {
            DefaultComboBoxModel model = (DefaultComboBoxModel) form.serverCombo.getModel();
            model.removeAllElements();
            NginxServersConfiguration servers = NginxServersConfiguration.getInstance();
            for (NginxServerDescriptor descriptor : servers.getServersDescriptors()) {
                model.addElement(descriptor);
            }
            String chosenDescriptorId = configuration.getServerDescriptorId();
            if (chosenDescriptorId != null) {
                NginxServersConfiguration serversConfig = NginxServersConfiguration.getInstance();
                NginxServerDescriptor descriptor = serversConfig.getDescriptorById(chosenDescriptorId);
                if (descriptor != null) {
                    model.setSelectedItem(descriptor);
                } else {
                    model.setSelectedItem(null);
                }
View Full Code Here

Examples of net.ishchenko.idea.nginx.configurator.NginxServersConfiguration

        String newText = oldText.substring(0, range.getStartOffset()) + newContent + oldText.substring(range.getEndOffset());
        Document document = FileDocumentManager.getInstance().getDocument(element.getContainingFile().getVirtualFile());
        document.replaceString(element.getTextRange().getStartOffset(), element.getTextRange().getEndOffset(), newText);
        PsiDocumentManager.getInstance(element.getProject()).commitDocument(document);

        NginxServersConfiguration nginxServersConfiguration = ApplicationManager.getApplication().getComponent(NginxServersConfiguration.class);
        nginxServersConfiguration.rebuildFilepaths();

        return element;

    }
View Full Code Here

Examples of net.ishchenko.idea.nginx.configurator.NginxServersConfiguration

        return new NginxRunProfileState(env, getProject());
    }

    public void checkConfiguration() throws RuntimeConfigurationException {

        NginxServersConfiguration config = NginxServersConfiguration.getInstance();
        NginxServerDescriptor descriptor = config.getDescriptorById(serverDescriptorId);
        if (descriptor == null) {
            throw new RuntimeConfigurationException(NginxBundle.message("run.error.noserver"));
        }

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.