use of com.google.javascript.jscomp.debugger.common.CompilationParam in project closure-compiler by google.
the class DebuggerGwtMain method createCheckboxes.
private void createCheckboxes(CellPanel checkboxPanel) {
for (CompilationParam.ParamGroup group : CompilationParam.ParamGroup.values()) {
SafeHtmlBuilder builder = new SafeHtmlBuilder();
builder.appendHtmlConstant("<b>");
builder.appendEscaped(group.name);
builder.appendHtmlConstant("</b>");
checkboxPanel.add(new HTML(builder.toSafeHtml()));
for (final CompilationParam param : CompilationParam.getGroupedSortedValues().get(group)) {
CheckBox cb = new CheckBox(param.toString());
if (param.getJavaInfo() != null) {
cb.setTitle("Java API equivalent: " + param.getJavaInfo());
}
cb.setValue(param.getDefaultValue());
param.apply(options, param.getDefaultValue());
cb.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
boolean checked = ((CheckBox) event.getSource()).getValue();
param.apply(options, checked);
doCompile();
}
});
checkboxPanel.add(cb);
}
}
}
Aggregations