Quando terminar a autoria do perfil UML customizado e estiver pronto
para disponibilizá-lo para terceiros, você deverá implementar o perfil. Uma
maneira de implementar seu perfil UML customizado é criar um plug-in e
empacotar seu perfil no novo plug-in. Em seguida, modifique o arquivo plugin.xml
para incluir um ponto de extensão em seu perfil. Depois, você
pode instalar o plug-in do perfil e aplicar o perfil a um modelo. Você
deve definir um mapa de caminho para o perfil. Empacote o perfil UML customizado
se desejar que o perfil seja listado como um perfil implementado no produto.You may first want to release the profile
to ensure that you cannot make changes to a profile that adversely affect
models that have the released profile applied to them.
Antes de implementar o perfil, você deve validá-lo
e resolver quaisquer erros.You must also be familiar with the plug-in creation process.
Para empacotar um perfil UML customizado:
- Crie um plug-in. Uma pasta que
contém os arquivos de plug-in é gerada quando você cria um plug-in.
Um dos arquivos gerados é um arquivo plugin.xml.
- No diretório principal de seu plug-in, crie uma pasta
denominada Perfis.
- Feche o Editor de Perfil UML.
- Copie o arquivo EPX para a pasta Perfis.
- To define a pathmap to the profile folder, in your
new plug-in folder, in the plugin.xml file, complete the following steps:
- Inclua com.ibm.xtools.emf.msl nos
plug-ins necessários.
- Add com.ibm.xtools.emf.msl.Pathmaps to the
extensions.
- Add a pathmap to the extension from the previous step that specifies
the name of the folder.
Dica: The name is the name of
the pathmap that you use in step
6.
The path is
Profiles from step
2.
- To add the profile extension, in your new plug-in
folder, in the plugin.xml file, complete the following steps:
- Add com.ibm.xtools.uml2.msl to the required
plug-ins.
- Add com.ibm.xtools.uml2.msl.UMLProfiles to
the extensions.
- Add a UML profile to the extension from the previous step.
Dica: In the following path example,
pathmap://PATHMAP_NAME/ProfileFileName.epx,
the path is a reference to the profile file with the pathmap you defined in
step
5.
PATHMAP_NAME is
the name of the pathmap you defined in step
5.
ProfileFileName.epx is
the name of the profile you copied to the
Profiles folder.
- Copie o plug-in do perfil para a pasta de plug-ins de seu
diretório de instalação.