Book a Demo

Author Topic: Double-click on Compartment Data Open Windows Form  (Read 8358 times)

Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Double-click on Compartment Data Open Windows Form
« on: December 03, 2014, 05:04:48 pm »
Hi All,

I have a stereotyped element, in which i have added a custom compartment with list of attributes by double-click on an attribute i need to open a custom windows form.

Is it possible via EA-Addin? Is there any API Call?

Any help would be greatly appreciated.
Thanks in advance.
« Last Edit: July 14, 2015, 10:25:48 pm by nabilsparx »
Nabil

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Double-click on Compartment Data Open Windows
« Reply #1 on: December 03, 2014, 06:30:57 pm »
EA_OnContextItemDoubleClicked

Geert

Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: Double-click on Compartment Data Open Windows
« Reply #2 on: December 03, 2014, 08:17:52 pm »
Hi Geert,
I tried and it is not working.
the use of EA_OnContextItemDoubleClicked picks the parent element GUID, when i double-click on the Compartment Data. But it exactly picks attribute GUID when i double click on an attribute of an element

FYI
The names  of the child elements of that particular element are listed in the Compartment(Custom Compartment) as compartment data.


Regards,
Nabil
« Last Edit: December 03, 2014, 08:24:36 pm by nabilsparx »
Nabil

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Double-click on Compartment Data Open Windows
« Reply #3 on: December 03, 2014, 08:55:21 pm »
You should send a bug report. Meanwhile you need to dbl-click in the project browser to achieve what you want.

q.

Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: Double-click on Compartment Data Open Windows
« Reply #4 on: December 03, 2014, 09:13:58 pm »
Hi Q

Thanks for the work around.
For time-being i can work with this.
And i will report the bug.
« Last Edit: July 14, 2015, 10:25:27 pm by nabilsparx »
Nabil

Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: Double-click on Compartment Data Open Windows
« Reply #5 on: December 05, 2014, 05:22:09 pm »
Hi all,

Is there any posiblity to close element properties window from Addin??

« Last Edit: July 14, 2015, 10:25:13 pm by nabilsparx »
Nabil

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Double-click on Compartment Data Open Windows
« Reply #6 on: December 05, 2014, 06:05:57 pm »
Not via the API, but there should be a way if you go via the OS.
I'm sure there a generic function somewhere to close a dialog.

Geert

Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: Double-click on Compartment Data Open Windows
« Reply #7 on: December 05, 2014, 06:26:42 pm »
Geert,

Thanks for your instant reply.
Let me figure it out and get back
« Last Edit: July 14, 2015, 10:24:56 pm by nabilsparx »
Nabil