Package org.erlide.engine.model.root

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


  }
 
  public void widgetSelected(final SelectionEvent e) {
    Object _data = e.widget.getData();
    this.info.setConfigType(((ProjectConfigType) _data));
    ProjectConfigType _configType = this.info.getConfigType();
    String _plus = ("ws: " + _configType);
    InputOutput.<String>println(_plus);
  }
View Full Code Here


  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();
View Full Code Here

        model = erlProject.getProperties();

        final Composite composite = new Composite(parent, SWT.NONE);

        boolean globalEnable = true;
        final ProjectConfigType configType = erlProject.getConfigType();
        if (configType != ProjectConfigType.INTERNAL) {
            globalEnable = false;
            setMessage("Please edit " + configType.getConfigName()
                    + " to change settings for this project");
        }

        composite.setLayout(new GridLayout(2, false));
        {
View Full Code Here

        if (project == null || !project.isAccessible()) {
            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,
                    0, IMarker.SEVERITY_WARNING);
View Full Code Here

    public IWizardPage getNextPage(final IWizardPage page) {
        if (page == mainPage) {
            return builderPage;
        }
        if (page == builderPage) {
            final ProjectConfigType config;
            if (info.getBuilder().equals(BuilderTool.MAKE)
                    || info.getBuilder().equals(BuilderTool.INTERNAL)) {
                config = info.getConfigType();
            } else {
                config = info.getBuilder().getMatchingConfigs().iterator().next();
View Full Code Here

    }
    return _xblockexpression;
  }
 
  public static ProjectConfigType detectBuilderConfig(final IContainer folder) {
    ProjectConfigType _xblockexpression = null;
    {
      boolean _exists = folder.exists();
      boolean _not = (!_exists);
      if (_not) {
        return null;
View Full Code Here

    return _xblockexpression;
  }
 
  public void loadFromFile() {
    IPath _location = this.getLocation();
    ProjectConfigType _configType = this.getConfigType();
    String _configName = _configType.getConfigName();
    IPath _append = _location.append(_configName);
    String _portableString = _append.toPortableString();
    final File f = new File(_portableString);
    boolean _exists = f.exists();
    if (_exists) {
      String _absolutePath = f.getAbsolutePath();
      String _plus = ("» LOAD " + _absolutePath);
      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);
View Full Code Here

TOP

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

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.