Examples of ImportedWithPrefix


Examples of com.google.gwt.libideas.resources.client.CssResource.ImportedWithPrefix

      boolean fail = false;
      for (Class<? extends CssResource> clazz : imp.value()) {
        JClassType importType = context.getGeneratorContext().getTypeOracle().findType(
            clazz.getName().replace('$', '.'));
        String prefix = importType.getSimpleSourceName();
        ImportedWithPrefix exp = importType.getAnnotation(ImportedWithPrefix.class);
        if (exp != null) {
          prefix = exp.value();
        }
        assert importType != null;

        if (replacementsWithPrefix.put(prefix + "-",
            computeReplacementsForType(importType)) != null) {
View Full Code Here

Examples of com.google.gwt.resources.client.CssResource.ImportedWithPrefix

  /**
   * Returns the import prefix for a type, including the trailing hyphen.
   */
  public static String getImportPrefix(JClassType importType) {
    String prefix = importType.getSimpleSourceName();
    ImportedWithPrefix exp = importType.getAnnotation(ImportedWithPrefix.class);
    if (exp != null) {
      prefix = exp.value();
    }

    return prefix + "-";
  }
View Full Code Here

Examples of com.google.gwt.resources.client.CssResource.ImportedWithPrefix

  /**
   * Returns the import prefix for a type, including the trailing hyphen.
   */
  public static String getImportPrefix(JClassType importType) {
    String prefix = importType.getSimpleSourceName();
    ImportedWithPrefix exp = importType.getAnnotation(ImportedWithPrefix.class);
    if (exp != null) {
      prefix = exp.value();
    }

    return prefix + "-";
  }
View Full Code Here

Examples of com.google.gwt.resources.client.CssResource.ImportedWithPrefix

  /**
   * Returns the import prefix for a type, including the trailing hyphen.
   */
  public static String getImportPrefix(JClassType importType) {
    String prefix = importType.getSimpleSourceName();
    ImportedWithPrefix exp = importType.getAnnotation(ImportedWithPrefix.class);
    if (exp != null) {
      prefix = exp.value();
    }

    return prefix + "-";
  }
View Full Code Here

Examples of com.google.gwt.resources.client.CssResource.ImportedWithPrefix

    importedType.add(importedClassType);

    // mock a class with a @ImportedWithPrefix annotation
    JClassType importedWithPrefixClassType = mock(JClassType.class);
    when(importedWithPrefixClassType.getSimpleSourceName()).thenReturn("ImportedWithPrefix");
    ImportedWithPrefix importedWithPrefixAnnotation = mock(ImportedWithPrefix.class);
    when(importedWithPrefixAnnotation.value()).thenReturn("otherImport");
    when(importedWithPrefixClassType.getAnnotation(ImportedWithPrefix.class))
        .thenReturn(importedWithPrefixAnnotation);
    importedType.add(importedWithPrefixClassType);

    // When
View Full Code Here

Examples of com.google.gwt.resources.client.CssResource.ImportedWithPrefix

      for (Class<? extends CssResource> clazz : imp.value()) {
        JClassType importType = context.getGeneratorContext().getTypeOracle().findType(
            clazz.getName().replace('$', '.'));
        assert importType != null;
        String prefix = importType.getSimpleSourceName();
        ImportedWithPrefix exp = importType.getAnnotation(ImportedWithPrefix.class);
        if (exp != null) {
          prefix = exp.value();
        }

        if (replacementsWithPrefix.put(prefix + "-",
            computeReplacementsForType(importType)) != null) {
          logger.log(TreeLogger.ERROR,
View Full Code Here

Examples of com.google.gwt.resources.client.CssResource.ImportedWithPrefix

  /**
   * Returns the import prefix for a type, including the trailing hyphen.
   */
  public static String getImportPrefix(JClassType importType) {
    String prefix = importType.getSimpleSourceName();
    ImportedWithPrefix exp = importType.getAnnotation(ImportedWithPrefix.class);
    if (exp != null) {
      prefix = exp.value();
    }

    return prefix + "-";
  }
View Full Code Here

Examples of com.google.gwt.resources.client.CssResource.ImportedWithPrefix

  /**
   * Returns the import prefix for a type, including the trailing hyphen.
   */
  public static String getImportPrefix(JClassType importType) {
    String prefix = importType.getSimpleSourceName();
    ImportedWithPrefix exp = importType.getAnnotation(ImportedWithPrefix.class);
    if (exp != null) {
      prefix = exp.value();
    }

    return prefix + "-";
  }
View Full Code Here

Examples of com.google.gwt.resources.client.CssResource.ImportedWithPrefix

  /**
   * Returns the import prefix for a type, including the trailing hyphen.
   */
  public static String getImportPrefix(JClassType importType) {
    String prefix = importType.getSimpleSourceName();
    ImportedWithPrefix exp = importType.getAnnotation(ImportedWithPrefix.class);
    if (exp != null) {
      prefix = exp.value();
    }

    return prefix + "-";
  }
View Full Code Here

Examples of com.google.gwt.resources.client.CssResource.ImportedWithPrefix

  /**
   * Returns the import prefix for a type, including the trailing hyphen.
   */
  public static String getImportPrefix(JClassType importType) {
    String prefix = importType.getSimpleSourceName();
    ImportedWithPrefix exp = importType.getAnnotation(ImportedWithPrefix.class);
    if (exp != null) {
      prefix = exp.value();
    }

    return prefix + "-";
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.