Empacotando Perfis UML Customizados

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:
  1. 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.
  2. No diretório principal de seu plug-in, crie uma pasta denominada Perfis.
  3. Feche o Editor de Perfil UML.
  4. Copie o arquivo EPX para a pasta Perfis.
  5. To define a pathmap to the profile folder, in your new plug-in folder, in the plugin.xml file, complete the following steps:
    1. Inclua com.ibm.xtools.emf.msl nos plug-ins necessários.
    2. Add com.ibm.xtools.emf.msl.Pathmaps to the extensions.
    3. 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.
  6. To add the profile extension, in your new plug-in folder, in the plugin.xml file, complete the following steps:
    1. Add com.ibm.xtools.uml2.msl to the required plug-ins.
    2. Add com.ibm.xtools.uml2.msl.UMLProfiles to the extensions.
    3. 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.
  7. Copie o plug-in do perfil para a pasta de plug-ins de seu diretório de instalação.
Conceitos relacionados
Perfis UML Customizados
Referências relacionadas
Referência de Ponto de Extensão: Perfis de UML
Processo de Criação de Plug-in
Termos de Utilização | Feedback
(C) Copyright IBM Corporation 2004, 2005. Todos os Direitos Reservados.