Example usage for com.google.gwt.dev.cfg Property getName

List of usage examples for com.google.gwt.dev.cfg Property getName

Introduction

In this page you can find the example usage for com.google.gwt.dev.cfg Property getName.

Prototype

public String getName() 

Source Link

Usage

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   ww w  .ja v a2  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;
        }
    }
}