Author Topic: Invoke addin from Propeties of an element  (Read 5648 times)

utkarsh

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Invoke addin from Propeties of an element
« on: March 22, 2010, 06:35:45 pm »
Hi,

I am developing a addin and the requirement is to Invoke addin from the properties which appears inside the context menu. What I mean is:

1. Right Click on an element(for e.g. a screen) in a diagram.
2. A popup opens up.
3. On click of properties, properties of the element opens up and user can see the properties of the element.
4. My requirement is: Open  addin when user clicks on properties instead of native properties dialog which is opened by EA. In the addin I will add a button(along with other funcitonality) something like "Open EA properties/UML".

Is this possible by addins?

Please guide.
Thanking you in anticipation.


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +553/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Invoke addin from Propeties of an element
« Reply #1 on: March 22, 2010, 08:17:49 pm »
No,

Currently you can only add menuoptions in the addin menu.
You cannot replace the current properties window by your own properties window.

Geert

utkarsh

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Invoke addin from Propeties of an element
« Reply #2 on: March 22, 2010, 08:26:44 pm »
Thanks for your prompt reply.

Is there is any other way to achieve the result? Can I do it using Object model, MDG technology and/or profiles?

Any suggestions will be helpful.
Thanks.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +553/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Invoke addin from Propeties of an element
« Reply #3 on: March 22, 2010, 08:27:44 pm »
No

utkarsh

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Invoke addin from Propeties of an element
« Reply #4 on: March 22, 2010, 08:39:43 pm »
Are you sure?

The business user shown me such a thing but I am not sure how it is implemented.

Thanks.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +553/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Invoke addin from Propeties of an element
« Reply #5 on: March 22, 2010, 08:58:18 pm »
You might be able to do something reacting to the broadcast events, but I'm pretty sure it is impossible to open the EA properties window from an addin, and I'm pretty sure you can't change the default functionality behind "open properties window".

Geert

beginner

  • Guest
Re: Invoke addin from Propeties of an element
« Reply #6 on: March 22, 2010, 09:02:08 pm »
You can write addins to present a complete window (in the diagram frame). There are only a few vendors offering such a thing. It's also not handy for what you want.

b.
« Last Edit: March 22, 2010, 09:03:01 pm by beginner »

utkarsh

  • EA User
  • **
  • Posts: 38
  • Karma: +0/-0
    • View Profile
Re: Invoke addin from Propeties of an element
« Reply #7 on: March 22, 2010, 09:11:58 pm »
Thanks.

I will ask the business user what he is using and will update here if I find something useful.


Yehuda

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Invoke addin from Propeties of an element
« Reply #8 on: March 22, 2010, 09:57:08 pm »
Hi all and thanks for your answers  -
The objective here is to set a customized designated functionality.
Just like when using XML Schema profile the properties window and is customized (and the data is usualy kept in tagged values).
Is such functionality only enabled for Sparks and its partners?
if not - how can it be acheived ?

Thanks in advanced
Yehuda

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Invoke addin from Propeties of an element
« Reply #9 on: March 23, 2010, 09:02:50 am »
Have a look at the EA_OnContextItemDoubleClicked broadcast event.  This is probably the closest you can get at the moment.  This should allow you to override the default properties dialog under some (but possibly not all) circumstances.
http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/ea_oncontextitemdoubleclicked.html

I don't think this event reacts to the right-click > Properties command, but should react when double-clicking on an element, or pressing the enter key with an element selected.

HTH

Yehuda

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Invoke addin from Propeties of an element
« Reply #10 on: March 23, 2010, 11:34:11 pm »
Thanks. it does help:-)