Example usage for com.google.gwt.i18n.client ConstantsWithLookup getStringArray

List of usage examples for com.google.gwt.i18n.client ConstantsWithLookup getStringArray

Introduction

In this page you can find the example usage for com.google.gwt.i18n.client ConstantsWithLookup getStringArray.

Prototype

String[] getStringArray(String methodName) throws MissingResourceException;

Source Link

Document

Look up String[] by method name.

Usage

From source file:org.broadleafcommerce.openadmin.client.MessageManager.java

License:Apache License

@Override
public String[] getStringArray(String methodName) throws MissingResourceException {
    MissingResourceException backup = null;
    for (int j = constants.size() - 1; j >= 0; j--) {
        ConstantsWithLookup constant = constants.get(j);
        try {// w  w w  .j  a v  a 2 s .co  m
            String[] temp = constant.getStringArray(methodName);
            return temp;
        } catch (MissingResourceException e) {
            backup = e;
        }
    }
    throw backup;
}