use of org.erlide.core.builder.CompilerOptions in project erlide_eclipse by erlang.
the class CompilerOptionsTest method test_9.
@Test
public void test_9() {
final CompilerOptions prefs = new CompilerOptions();
prefs.setBooleanOption(CompilerOptions.WARN_EXPORT_ALL, false);
final String actual = prefs.export().toString();
final String expect = "[" + CompilerOptionsTest.DEF_VALUES + "]";
Assert.assertEquals(expect, actual);
}
use of org.erlide.core.builder.CompilerOptions in project erlide_eclipse by erlang.
the class CompilerOptionsTest method test_3.
@SuppressWarnings("unchecked")
@Test
public void test_3() {
final CompilerOptions prefs = new CompilerOptions();
prefs.setListOption(CompilerOptions.DEFINE, new Pair<String, String>("Macro", null));
final String actual = prefs.export().toString();
final String expect = "[{d,'Macro'}," + CompilerOptionsTest.DEF_VALUES + "]";
Assert.assertEquals(expect, actual);
}
use of org.erlide.core.builder.CompilerOptions in project erlide_eclipse by erlang.
the class CompilerOptionsTest method test_12.
@Test
public void test_12() {
final CompilerOptions prefs = new CompilerOptions();
prefs.setPathOption(CompilerOptions.INCLUDE_DIRS, parseIncludes("/tmp/x,/tmp/y"));
final String actual = prefs.export().toString();
final String expect = "[{i,\"/tmp/x\"},{i,\"/tmp/y\"}," + CompilerOptionsTest.DEF_VALUES + "]";
Assert.assertEquals(expect, actual);
}
use of org.erlide.core.builder.CompilerOptions in project erlide_eclipse by erlang.
the class CompilerPreferencePage method performDefaults.
@Override
protected void performDefaults() {
if (fProject == null) {
prefs = new CompilerOptions();
} else {
prefs = new CompilerOptions(fProject);
}
updateUI();
super.performDefaults();
}
use of org.erlide.core.builder.CompilerOptions in project erlide_eclipse by erlang.
the class CompilerPreferencePage method initPrefs.
private void initPrefs() {
if (fProject == null) {
prefs = new CompilerOptions();
} else {
prefs = new CompilerOptions(fProject);
}
prefs.load();
updateUI();
}
Aggregations