Author Topic: How to inspect selected toolbox and contents  (Read 2233 times)

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
How to inspect selected toolbox and contents
« on: December 12, 2008, 01:48:52 pm »
Here's what I want to do.

To improve model integrity, I want to prevent a user from adding an element to a diagram that doesn't belong to the default toolbox for the diagram.

I know how to inspect / check the type of element being added in the the SDK, but not about the toolbox linked to the diagram to check membership of the to be newly created element or connector.

Is there any support for:
1. Identifying the toolbox selected for the diagram
2. Identifying which toolbox belongs to the diagram
3. Checking the defined stereotypes (elements and connectors) of the toolbox that belongs to the diagram

The above 3 functions will allow me to compare the stereotype of the new element / connector with those defined on the default toolbox for the diagram - thereby allowing / disallowing the element create.

Thanks,
David.
« Last Edit: December 12, 2008, 01:49:54 pm by Dave_Bullet »
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"