Package com.google.gwt.core.ext

Examples of com.google.gwt.core.ext.ConfigurationProperty


      for (String localeValue : localeValues) {
        allCompileLocales.add(factory.fromString(localeValue));
      }
      allLocales.addAll(allCompileLocales);
     
      ConfigurationProperty prop
          = propertyOracle.getConfigurationProperty(PROP_RUNTIME_LOCALES);
      List<String> rtLocaleNames = prop.getValues();
      if (rtLocaleNames != null) {
        for (String rtLocale : rtLocaleNames) {
          GwtLocale locale = factory.fromString(rtLocale);
          // TODO(jat): remove use of labels
          existingLocales:
View Full Code Here


  public void init(TreeLogger logger, ResourceContext context)
      throws UnableToCompleteException {
    String classPrefix;
    try {
      PropertyOracle propertyOracle = context.getGeneratorContext().getPropertyOracle();
      ConfigurationProperty styleProp = propertyOracle.getConfigurationProperty("CssResource.style");
      String style = styleProp.getValues().get(0);
      prettyOutput = style.equals("pretty");

      ConfigurationProperty mergeProp = propertyOracle.getConfigurationProperty("CssResource.mergeEnabled");
      String merge = mergeProp.getValues().get(0);
      enableMerge = merge.equals("true");

      ConfigurationProperty classPrefixProp = propertyOracle.getConfigurationProperty("CssResource.obfuscationPrefix");
      classPrefix = classPrefixProp.getValues().get(0);
    } catch (BadPropertyValueException e) {
      logger.log(TreeLogger.ERROR, "Unable to query module property", e);
      throw new UnableToCompleteException();
    }
View Full Code Here

      /*
       * Fall back to using the to-be-deprecated strictAccessor property.
       */
      try {
        PropertyOracle propertyOracle = context.getGeneratorContext().getPropertyOracle();
        ConfigurationProperty prop = propertyOracle.getConfigurationProperty("CssResource.strictAccessors");
        String propertyValue = prop.getValues().get(0);
        if (Boolean.valueOf(propertyValue)) {
          logger.log(TreeLogger.WARN,
              "CssResource.strictAccessors is true, but " + method.getName()
                  + "() is missing the @Strict annotation.");
          strict = true;
View Full Code Here

   * property.
   * @return a Set of Strings, or null.
   */
  static Set<String> getEnhancedTypes(PropertyOracle propertyOracle) {
    try {
      ConfigurationProperty prop = propertyOracle.getConfigurationProperty(RPC_ENHANCED_CLASSES);
      return Collections.unmodifiableSet(new HashSet(prop.getValues()));
    } catch (BadPropertyValueException e) {
      return null;
    }
  }
View Full Code Here

      }
    }

    jsExportClosureStyle = false;
    for (PropertyOracle propertyOracle : propertyOracles) {
      ConfigurationProperty configProp = null;
      try {
        configProp = propertyOracle.getConfigurationProperty(
          "js.export.closurestyle.fullyqualified");
        if (configProp != null && "true".equals(configProp.getValues().get(0))) {
          jsExportClosureStyle = true;
          break;
        }
      } catch (BadPropertyValueException e) {
      }
View Full Code Here

  private static final boolean DEFAULT_RECOGNIZE_BEAN_PROPERTIES =
      true;

  public static List<String> getTamingInterfaces(
      GeneratorContext context) {
    ConfigurationProperty cp =
        getMultiValuedProperty(context, TAMING_INTERFACES_PROP);
    return (cp == null) ? Collections.<String>emptyList() : cp.getValues();
  }
View Full Code Here

    return (cp == null) ? Collections.<String>emptyList() : cp.getValues();
  }

  public static List<String> getTamingImplementations(
      GeneratorContext context) {
    ConfigurationProperty cp =
        getMultiValuedProperty(context, TAMING_IMPLEMENTATIONS_PROP);
    return (cp == null) ? Collections.<String>emptyList() : cp.getValues();
  }
View Full Code Here

  public static boolean isRecognizeBeanProperties(
      TreeLogger logger,
      GeneratorContext context)
      throws UnableToCompleteException {
    ConfigurationProperty cp = getSingleValuedProperty(
        logger, context, RECOGNIZE_BEAN_PROPERTIES_PROP);
    return (cp == null || cp.getValues().get(0) == null)
        ? DEFAULT_RECOGNIZE_BEAN_PROPERTIES
        : Boolean.valueOf(cp.getValues().get(0));
  }
View Full Code Here

      TreeLogger logger,
      GeneratorContext context,
      String name)
      throws UnableToCompleteException {
    try {
      ConfigurationProperty cp = context.getPropertyOracle()
          .getConfigurationProperty(name);
      if (cp.getValues().size() != 1) {
        logger.log(TreeLogger.Type.ERROR,
            "Must specify exactly one value for property " + name);
        throw new UnableToCompleteException();
      }
      return cp;
View Full Code Here

    addRoots(logger, typeOracle, typesSentFromBrowserBuilder,
        typesSentToBrowserBuilder);

    try {
      ConfigurationProperty prop = context.getPropertyOracle().getConfigurationProperty(
          TypeSerializerCreator.GWT_ELIDE_TYPE_NAMES_FROM_RPC);
      elideTypeNames = Boolean.parseBoolean(prop.getValues().get(0));
    } catch (BadPropertyValueException e) {
      logger.log(TreeLogger.ERROR, "Configuration property "
          + TypeSerializerCreator.GWT_ELIDE_TYPE_NAMES_FROM_RPC
          + " is not defined. Is RemoteService.gwt.xml inherited?");
      throw new UnableToCompleteException();
View Full Code Here

TOP

Related Classes of com.google.gwt.core.ext.ConfigurationProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.