private void addImport(
     final TemplateDataDictionary dataDictionary,
     final String simpleName,
     final GwtType gwtType,
     final String moduleName) {
   addImport(
       dataDictionary,
       gwtType.getPath().packageName(projectOperations.getTopLevelPackage(moduleName))
           + "."
           + simpleName
           + gwtType.getSuffix());
 }
Exemplo n.º 2
0
 public static JavaType convertGovernorTypeNameIntoKeyTypeName(
     final JavaType governorType, final GwtType type, final ProjectMetadata projectMetadata) {
   String destinationPackage = type.getPath().packageName(projectMetadata);
   String typeName;
   if (type.isMirrorType()) {
     String simple = governorType.getSimpleTypeName();
     typeName = destinationPackage + "." + simple + type.getSuffix();
   } else {
     typeName = destinationPackage + "." + type.getTemplate();
   }
   return new JavaType(typeName);
 }