Package com.intellij.openapi.options

Examples of com.intellij.openapi.options.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"));
            }
        }

        config.removeAllServerDescriptors();
        for (int i = 0; i < serverList.getModel().getSize(); i++) {
View Full Code Here


      }
      catch (Exception e)
      {
        LOGGER.warn(e);
        final String details = ((e.getLocalizedMessage() == null) ? e.toString() : e.getLocalizedMessage());
        throw new ConfigurationException(
          RevuBundle.message("projectSettings.error.save.title.text", originalReview.getName(), details),
          RevuBundle.message("general.plugin.title"));
      }
    }
View Full Code Here

   */
  public final void apply() throws ConfigurationException
  {
    if (!updateFormData())
    {
      throw new ConfigurationException(
        RevuBundle.message("general.form.hasErrors.text"), RevuBundle.message("general.plugin.title"));
    }

    int itemCount = list.getModel().getSize();
    Map<E, E> items = new HashMap<E, E>(itemCount);
View Full Code Here

        if (configurationPanel != null) {
            try {
                configurationPanel.applyConfigurationData(jenkinsAppSettings, jenkinsSettings);
                JenkinsWindowManager.getInstance(project).reloadConfiguration();
            } catch (org.codinjutsu.tools.jenkins.exception.ConfigurationException ex) {
                throw new ConfigurationException(ex.getMessage());
            }
        }
    }
View Full Code Here

        form.exportTo(test);
        SettingsManager.verify( test );
      }
    } catch (IllegalSettingsException e) {
      LOG.info(e);
      throw new ConfigurationException(Messages.message(e));
    }
  }
View Full Code Here

  @Override
  public void apply() throws ConfigurationException {
    String jarFileName = myJarFileTextField.getText();
    if (StringUtil.isEmptyOrSpaces(jarFileName)) {
      throw new ConfigurationException(OsmorcBundle.message("facet.editor.jar.empty.jar.name"));
    }

    OsmorcFacetConfiguration configuration = (OsmorcFacetConfiguration)myEditorContext.getFacet().getConfiguration();

    OutputPathType pathType = getSelectedOutputPathType();
    if (pathType == SpecificOutputPath) {
      String location = myJarOutputPathChooser.getText();
      if (StringUtil.isEmptyOrSpaces(location)) {
        throw new ConfigurationException(OsmorcBundle.message("facet.editor.jar.empty.output.path"));
      }
      String completeOutputPath = new File(location, jarFileName).getPath();
      configuration.setJarFileLocation(completeOutputPath, pathType);
    }
    else {
View Full Code Here

      try {
        myRulesModel.getElementAt(i).validate();
      }
      catch (IllegalArgumentException e) {
        myRulesList.setSelectedIndex(i);
        throw new ConfigurationException(e.getMessage());
      }
    }

    settings.setLibraryBundlificationRules(ContainerUtil.newArrayList(myRulesModel.getItems()));
  }
View Full Code Here

        return this;
    }

    public void checkValid() throws ConfigurationException {
        if (version != GoAppEngineSdkData.LATEST_VERSION) {
            throw new ConfigurationException("SDK configuration needs to be upgraded");
        }
    }
View Full Code Here

        return super.clone();
    }

    public void checkValid() throws ConfigurationException {
        if (version != GoSdkData.LATEST_VERSION) {
            throw new ConfigurationException("SDK configuration needs to be upgraded");
        }
    }
View Full Code Here

        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"));
            }
        }

        config.removeAllServerDescriptors();
        for (int i = 0; i < serverList.getModel().getSize(); i++) {
View Full Code Here

TOP

Related Classes of com.intellij.openapi.options.ConfigurationException

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.