Book a Demo

Author Topic: Get selected element - add-in  (Read 3501 times)

minna

  • EA User
  • **
  • Posts: 64
  • Karma: +1/-0
    • View Profile
Get selected element - add-in
« on: February 22, 2014, 12:41:14 am »
Hi,

I have created my own custom classes and connectors based on UML using profile helpers. There are multiple of these classes and connectors in my diagram. I have a diagram filter on that hides all my connectors.

I want to write an add-inn that will do the following: When I click on a class, I would like to show all the connectors and other classes connected to it, grey out all the other classes not connected and keep the other connectors in a hidden state.

What add-in events can I use to achieve this?

Thanks,
Minna

EXploringEA

  • EA User
  • **
  • Posts: 172
  • Karma: +8/-0
    • View Profile
Re: Get selected element - add-in
« Reply #1 on: February 22, 2014, 03:04:49 am »
On context item changed will fire when you select and item in the EA UI however, although I may be wrong, but as far as I know there are no functions that can manipulate the diagram filters.  Are there?
EXploringEA - information, utilities and addins

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Get selected element - add-in
« Reply #2 on: February 22, 2014, 04:43:49 am »
I guess not. You likely have to hack some tables. Sorry, but I did not dive into diagram filter right now.

q.