List of usage examples for com.google.gwt.dev.cfg PropertyPermutations PropertyPermutations
public PropertyPermutations(PropertyPermutations allPermutations, List<String[]> values)
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; }