@Override public void updateUIFromEntities( ImmutableArray<EntityProxy> proxies, Field field, Class<?> fieldType) throws ReflectiveOperationException { StringStringMapView view = views.get(field); if (proxies.size() > 1) view.multipleSelected(); else view.setMap(EntityUtils.getFirstEntityComponent(proxies, Variables.class)); }
@Override public void setToEntities(Component component, Field field, Class<?> fieldType) throws ReflectiveOperationException { StringStringMapView view = views.get(field); view.updateMapFromUI(); }