Ola pessoal
Estou criando o UML no Netbeans 6.0, e quando fui criar o Enum, tive a seguinte saida de erro.
Begin processing Generate Code: 1 items
Code Generation selected options:
Source Folder Location - D:\Eduardo\NetBeansProjects\WebApplication1\src\java
Backup Sources - true
Generate Markers - false
Show Generate Code Dialog - true
Processing element 1 of 1: Enumeration Sexo ... ERROR: No templates defined for the element
Pelo que entendi(nao tenho certeza) ele nao esta encontrando o arquivo de modelos de Enum, porem, eu dei uma olhada nos templates
na parte UML encontrei o EnumDeclaration com o seguinte código<#--
# EnumDeclaration:
#enum Identifier [implements TypeList] EnumBody
#-->
<#import "DeclLib.ftl" as lib
/>
<#macro EnumDeclaration classInfo nestingLevel
>
<@lib.TypeDeclarationComment classInfo nestingLevel
/>
<@lib.ident nestingLevel /><@lib.compress single_line=true ><@lib.TypeDeclarationModifiers classInfo /> enum ${classInfo.getShortClassName()} <@lib.TypeDeclarationTypeParameters classInfo /> <@lib.ClassImplements classInfo /></@lib.compress> {
<@lib.EnumBodyDeclaration classInfo nestingLevel+1 />
<@lib.ident nestingLevel />}
</#macro>
<#assign licenseFirst = "/*">
<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "../Licenses/license-${project.license}.txt">
<#if package?? && package != "">
package ${package};
</#if>
/**
*
* @author ${user}
*/
public enum ${name} {
}
Properties
Alias Sexo
Visibility public
Final
Transient
Abstract
Leaf
Literal Summary
Masculino
Feminino
se alguem puder me ajudar
obrigado
T+