Package org.erlide.engine.model.builder

Examples of org.erlide.engine.model.builder.BuilderTool


  }
 
  public void widgetSelected(final SelectionEvent e) {
    Object _data = e.widget.getData();
    this.info.setBuilder(((BuilderTool) _data));
    BuilderTool _builder = this.info.getBuilder();
    final Collection<ProjectConfigType> cfgs = _builder.getMatchingConfigs();
    ProjectConfigType _configType = this.info.getConfigType();
    boolean _contains = cfgs.contains(_configType);
    boolean _not = (!_contains);
    if (_not) {
      ProjectConfigType _head = IterableExtensions.<ProjectConfigType>head(cfgs);
      this.page.selectConfig(_head);
    }
    this.page.setMessage(null);
    boolean _or = false;
    BuilderTool _builder_1 = this.info.getBuilder();
    String _osCommand = _builder_1.getOsCommand();
    boolean _tripleEquals = (_osCommand == null);
    if (_tripleEquals) {
      _or = true;
    } else {
      BuilderTool _builder_2 = this.info.getBuilder();
      String _osCommand_1 = _builder_2.getOsCommand();
      String _toolLocation = ToolExecutor.getToolLocation(_osCommand_1);
      boolean _tripleNotEquals = (_toolLocation != null);
      _or = _tripleNotEquals;
    }
    final boolean toolExists = _or;
    if ((!toolExists)) {
      StringConcatenation _builder_3 = new StringConcatenation();
      _builder_3.append("The tool \'");
      BuilderTool _builder_4 = this.info.getBuilder();
      String _osCommand_2 = _builder_4.getOsCommand();
      _builder_3.append(_osCommand_2, "");
      _builder_3.append("\' can\'t be found on your system\'s $PATH");
      this.page.setMessage(_builder_3.toString(),
        DialogPage.WARNING);
    }
    boolean _or_1 = false;
    BuilderTool _builder_5 = this.info.getBuilder();
    boolean _equals = Objects.equal(_builder_5, BuilderTool.MAKE);
    if (_equals) {
      _or_1 = true;
    } else {
      BuilderTool _builder_6 = this.info.getBuilder();
      boolean _equals_1 = Objects.equal(_builder_6, BuilderTool.INTERNAL);
      _or_1 = _equals_1;
    }
    this.page.configComposite.setVisible(_or_1);
    BuilderTool _builder_7 = this.info.getBuilder();
    boolean _equals_2 = Objects.equal(_builder_7, BuilderTool.MAKE);
    this.page.makeConfigComposite.setVisible(_equals_2);
  }
View Full Code Here


                    newProjectHandle.open(monitor);
                    description.setNatureIds(new String[] { ErlangCore.NATURE_ID });
                    newProjectHandle.setDescription(description, null);

                    final BuilderTool builder = info.getBuilder();
                    ErlangNature.setErlangProjectBuilder(newProjectHandle, builder);
                    createBuilderConfig(builder);

                    createFolders(newProjectHandle,
                            Lists.newArrayList(info.getOutputDir()), monitor);
View Full Code Here

            return null;
        }
        final IErlProject erlProject = ErlangEngine.getInstance().getModel()
                .getErlangProject(project);
        final ProjectConfigType config = erlProject.getConfigType();
        final BuilderTool tool = erlProject.getBuilderProperties().getBuilderTool();

        if (!validateBuildConfiguration(erlProject)) {
            ErlLogger.warn("Builder tool and config mismatch: " + tool + " " + config);
            monitor.setCanceled(true);
        }
View Full Code Here

        return null;
    }

    private boolean validateBuildConfiguration(final IErlProject erlProject) {
        final ProjectConfigType config = erlProject.getConfigType();
        final BuilderTool tool = erlProject.getBuilderProperties().getBuilderTool();
        if (!config.matchesTool(tool)) {
            final String msg = String.format(
                    "Project's builder tool %s and configuration %s don't match", tool,
                    config);
            MarkerUtils.createProblemMarker(erlProject.getWorkspaceProject(), null, msg,
View Full Code Here

    NullProgressMonitor _nullProgressMonitor = new NullProgressMonitor();
    prj.setDescription(description, _nullProgressMonitor);
  }
 
  public static BuilderTool detectBuilderTool(final IContainer folder) {
    BuilderTool _xblockexpression = null;
    {
      boolean _exists = folder.exists();
      boolean _not = (!_exists);
      if (_not) {
        return null;
View Full Code Here

  public void fromString(final String data) {
    String _quote = Pattern.quote("|");
    final String[] parts = data.split(_quote);
    try {
      String _get = parts[0];
      final BuilderTool bt = BuilderTool.valueOf(_get);
      final String b = parts[1];
      final String c = parts[2];
      final String l = parts[3];
      final String t = parts[4];
      this.builderTool = bt;
View Full Code Here

TOP

Related Classes of org.erlide.engine.model.builder.BuilderTool

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.