Package org.erlide.core.builder

Examples of org.erlide.core.builder.CompilerOptions


        return Splitter.on(',').trimResults().omitEmptyStrings().split(s);
    }

    @Test
    public void test_10() {
        final CompilerOptions prefs = new CompilerOptions();
        prefs.setPathOption(CompilerOption.INCLUDE_DIRS, parseIncludes(""));
        final String actual = prefs.export().toString();
        final String expect = "[" + DEF_VALUES + "]";
        Assert.assertEquals(expect, actual);
    }
View Full Code Here


        Assert.assertEquals(expect, actual);
    }

    @Test
    public void test_11() {
        final CompilerOptions prefs = new CompilerOptions();
        prefs.setPathOption(CompilerOption.INCLUDE_DIRS, parseIncludes("/tmp/x"));
        final String actual = prefs.export().toString();
        final String expect = "[{i,\"/tmp/x\"}," + DEF_VALUES + "]";
        Assert.assertEquals(expect, actual);
    }
View Full Code Here

        Assert.assertEquals(expect, actual);
    }

    @Test
    public void test_12() {
        final CompilerOptions prefs = new CompilerOptions();
        prefs.setPathOption(CompilerOption.INCLUDE_DIRS, parseIncludes("/tmp/x,/tmp/y"));
        final String actual = prefs.export().toString();
        final String expect = "[{i,\"/tmp/x\"},{i,\"/tmp/y\"}," + DEF_VALUES + "]";
        Assert.assertEquals(expect, actual);
    }
View Full Code Here

        return prefsComposite;
    }

    private void initPrefs() {
        if (fProject == null) {
            prefs = new CompilerOptions();
        } else {
            prefs = new CompilerOptions(fProject);
        }
        prefs.load();
        updateUI();
    }
View Full Code Here

        prefs.load();
        updateUI();
    }

    protected boolean hasProjectSpecificOptions(final IProject project) {
        final CompilerOptions p = new CompilerOptions(project);
        return p.hasOptionsAtLowestScope();
    }
View Full Code Here

    }

    @Override
    protected void performDefaults() {
        if (fProject == null) {
            prefs = new CompilerOptions();
        } else {
            prefs = new CompilerOptions(fProject);
        }
        updateUI();
        super.performDefaults();
    }
View Full Code Here

TOP

Related Classes of org.erlide.core.builder.CompilerOptions

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.