Book a Demo

Author Topic: UML Pattern Namespaces for Toolbox  (Read 4373 times)

Gary Bolton

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
UML Pattern Namespaces for Toolbox
« on: October 27, 2011, 01:25:19 am »
I am trying to create a toolbox and want to put a series of patterns that I have created on the toolbox.  The user guide suggests the following when creating the toolbox profile:  

To define a toolbox item that allows a pattern to be dropped onto a diagram, name the attribute MyTechnology::MyPattern(UMLPattern) where MyTechnology is the name of the technology and MyPattern is the name of the pattern to drop. For example, GoFPatterns::Builder(UMLPattern).

I have to admit,  this isn't very clear.   I am struggling with what I should use for the namespace for the UML Pattern.  For profiles,  it is much clearer (use the name of the profile),  but I am not sure what to do for patterns.

Thanks in advance for any help with this.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: UML Pattern Namespaces for Toolbox
« Reply #1 on: October 27, 2011, 05:55:12 am »
I guess the name to the technology is what you specify in the first line of the MDG wizard.

q.

Gary Bolton

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: UML Pattern Namespaces for Toolbox
« Reply #2 on: October 27, 2011, 06:09:50 am »
I tried it (and I just tried it again to make sure) and no such luck.  Any other ideas?  

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: UML Pattern Namespaces for Toolbox
« Reply #3 on: October 27, 2011, 09:06:22 am »
That should be the technology ID, not the technology name.
The Sparx Team
[email protected]

Gary Bolton

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: UML Pattern Namespaces for Toolbox
« Reply #4 on: October 27, 2011, 12:11:37 pm »
Do I need to create a profile package with the technology id for the package name like you do for the profile and the diagram profiles?

Gary Bolton

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: UML Pattern Namespaces for Toolbox
« Reply #5 on: October 29, 2011, 03:55:39 am »
Still no luck so any help that anyone can provide would be greatly appreciated.  The pattern works fine if I import it into Resources but I can't get it to work from a toolbox.