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

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

Introduction

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

Prototype

public String[] getOrderedPropertyValues(int permutation) 

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 {/*from w  w w . j  a  va2s  .  c o m*/
            processedProperties = permutations.getOrderedPropertyValues(0);
        }

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

    return propertyOracle;
}