List of usage examples for com.google.gwt.dev.cfg BindingProperty getRootCondition
public ConditionAll getRootCondition()
From source file:com.google.gdt.eclipse.designer.hosted.tdz.HostedModeSupport.java
License:Open Source License
/** * Forcibly set 'user.agent' property to current platform. * http://fogbugz.instantiations.com/fogbugz/default.php?41513 *//*from w ww.java 2 s.c o m*/ private void fixUserAgentProperty(ModuleDef module) { Properties properties = module.getProperties(); for (Property property : properties) { if ("user.agent".equals(property.getName())) { BindingProperty bindingProperty = (BindingProperty) property; bindingProperty.setAllowedValues(bindingProperty.getRootCondition(), m_browserShell.getUserAgentString()); return; } } }