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

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

Introduction

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

Prototype

public PropertyPermutations(PropertyPermutations allPermutations, List<String[]> values) 

Source Link

Document

Copy constructor that allows the list of property values to be reset.

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   ww w . j ava 2 s  . com
            processedProperties = permutations.getOrderedPropertyValues(0);
        }

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

    return propertyOracle;
}