Package org.erlide.engine.model.root

Examples of org.erlide.engine.model.root.IProjectConfigurator


    }

    @Override
    public IProjectConfigurator getConfig(final ProjectConfigType configType,
            final IErlProject project) {
        IProjectConfigurator result = null;
        switch (configType) {
        case INTERNAL:
            final String configName = configType.getConfigName();
            final IEclipsePreferences node = new ProjectScope(
                    project.getWorkspaceProject()).getNode(configName);
View Full Code Here


    }

    @Override
    public IProjectConfigurator getConfig(final ProjectConfigType configType,
            final File directory) {
        IProjectConfigurator result = null;
        switch (configType) {
        case INTERNAL:
            result = new PreferencesProjectConfigurator(null, null);
            break;
        case REBAR:
View Full Code Here

    public ProjectConfigType getConfigType() {
        return configType;
    }

    private ErlangProjectProperties loadProperties() {
        final IProjectConfigurator builderConfig = getConfigurator();
        final ErlangProjectProperties config = builderConfig
                .getConfiguration(getWorkspaceProject().getLocation());
        return config;
    }
View Full Code Here

                .getConfig(getConfigType(), this);
    }

    private void storeProperties() {
        if (properties != null) {
            final IProjectConfigurator builderConfig = getConfigurator();
            builderConfig.setConfiguration(properties);
        }
    }
View Full Code Here

    @Test
    public void configuratorExists() {
        project.setConfigType(ProjectConfigType.EMAKE);

        final IProjectConfigurator config = ProjectConfiguratorFactory.getDefault()
                .getConfig(project.getConfigType(), project);
        assertThat(config, is(notNullValue()));

        // final ProjectConfigurator configurator = config.getConfigurator();
        // assertThat(configurator, is(notNullValue()));
View Full Code Here

    @Override
    @Test
    public void configCanBeParsed() throws CoreException {
        project.setConfigType(ProjectConfigType.EMAKE);
        final IProjectConfigurator config = ProjectConfiguratorFactory.getDefault()
                .getConfig(project.getConfigType(), project);

        final ErlangProjectProperties expected = ErlangProjectProperties.DEFAULT;
        final ErlangProjectProperties actual = config.getConfiguration(project
                .getWorkspaceProject().getLocation());

        assertThat(actual, is(ErlangProjectPropertiesMatcher.sameAs(expected)));
    }
View Full Code Here

    public void configCanBeParsed() throws CoreException {
        project.setConfigType(ProjectConfigType.REBAR);
        project.storeAllProperties();
        setFileContent(ProjectConfigType.REBAR.getConfigName(), "");

        final IProjectConfigurator persister = ProjectConfiguratorFactory.getDefault()
                .getConfig(project.getConfigType(), project);
        final ProjectConfigurationSerializer configurator = ((FileProjectConfigurator) persister)
                .getSerializer();

        final ErlangProjectProperties expected = new ErlangProjectProperties();
View Full Code Here

      System.out.println(_plus);
      ProjectConfigType _configType_1 = this.getConfigType();
      IPath _location_1 = this.getLocation();
      String _portableString_1 = _location_1.toPortableString();
      File _file = new File(_portableString_1);
      final IProjectConfigurator config = this.factory.getConfig(_configType_1, _file);
      final ErlangProjectProperties props = config.getConfiguration(this.location);
      IPath _outputDir = props.getOutputDir();
      this.setOutputDir(_outputDir);
      Collection<IPath> _sourceDirs = props.getSourceDirs();
      this.setSourceDirs(_sourceDirs);
      Collection<IPath> _includeDirs = props.getIncludeDirs();
View Full Code Here

            _and = _exists;
          }
          if (_and) {
            String _xblockexpression_2 = null;
            {
              final IProjectConfigurator persister = this.factory.getConfig(this.configType, directory);
              InputOutput.<String>println(("PERSISTER " + persister));
              String _xifexpression_2 = null;
              boolean _tripleNotEquals_1 = (persister != null);
              if (_tripleNotEquals_1) {
                String _xblockexpression_3 = null;
                {
                  final ErlangProjectProperties props = persister.getConfiguration(this.location);
                  _xblockexpression_3 = InputOutput.<String>println(("detected PROPS: " + props));
                }
                _xifexpression_2 = _xblockexpression_3;
              }
              _xblockexpression_2 = _xifexpression_2;
View Full Code Here

TOP

Related Classes of org.erlide.engine.model.root.IProjectConfigurator

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.