public void parse(XMLElement elem, String fieldName, JClassType type,
UiBinderWriter writer) throws UnableToCompleteException {
// Generate instantiation (requires a 'unit' ctor param).
// (Don't generate a ctor for the SplitLayoutPanel, it has its own parser).
if (type != getSplitLayoutPanelType(writer)) {
JEnumType unitEnumType = writer.getOracle().findType(
Unit.class.getCanonicalName()).isEnum();
String unit = elem.consumeAttributeWithDefault("unit",
String.format("%s.%s", unitEnumType.getQualifiedSourceName(), "PX"),
unitEnumType);
writer.setFieldInitializerAsConstructor(fieldName,
writer.getOracle().findType(DockLayoutPanel.class.getName()), unit);
}