Example usage for com.google.gwt.dev.cfg PropertyPermutations getOrderedProperties

List of usage examples for com.google.gwt.dev.cfg PropertyPermutations getOrderedProperties

Introduction

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

Prototype

public BindingProperty[] getOrderedProperties() 

Source Link

Usage

From source file:com.googlecode.gwt.test.internal.handlers.GeneratorCreateHandler.java

License:Apache License

protected PropertyOracle getPropertyOracle() {
    if (propertyOracle == null) {
        PropertyPermutations permutations = new PropertyPermutations(moduleDef.getProperties(),
                moduleDef.getActiveLinkerNames());

        SortedSet<ConfigurationProperty> configPropSet = moduleDef.getProperties().getConfigurationProperties();
        ConfigurationProperty[] configProps = configPropSet
                .toArray(new ConfigurationProperty[configPropSet.size()]);

        BindingProperty[] orderedProperties = permutations.getOrderedProperties();

        WithProperties withProperties = GwtTestDataHolder.get().getCurrentWithProperties();

        String[] processedProperties;
        if (withProperties != null) {
            processedProperties = replaceOrderedPropertyValues(orderedProperties,
                    permutations.getOrderedPropertyValues(0), withProperties);
        } else {/*w w  w.  ja va 2 s  . c o  m*/
            processedProperties = permutations.getOrderedPropertyValues(0);
        }

        propertyOracle = new StaticPropertyOracle(orderedProperties, processedProperties, configProps);
    }

    return propertyOracle;
}