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()); }
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); }
private String getFullyQualifiedTypeName(final GwtType gwtType, final String moduleName) { return gwtType.getPath().packageName(projectOperations.getTopLevelPackage(moduleName)) + "." + gwtType.getTemplate(); }