Book a Demo

Author Topic: Embedding Own Sub-Windows / Sub-Menus / Views with C#-Addin  (Read 6292 times)

Shounbourgh

  • EA Novice
  • *
  • Posts: 18
  • Karma: +1/-0
    • View Profile
Embedding Own Sub-Windows / Sub-Menus / Views with C#-Addin
« on: August 24, 2016, 09:02:53 pm »
Hi there,

just one / two short question(s): Is it possible to create and embed own Views in Enterprise Architect (i.e. there are the "Toolbox"-, "Traceability"-,"Project Browser" .... - Views) with a C#-Addin. If not, is it possible to implement a Window with Windows.Forms / Windows.Presentation to create own Views?

Thanks for you help.

Erik

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller

Shounbourgh

  • EA Novice
  • *
  • Posts: 18
  • Karma: +1/-0
    • View Profile
Re: Embedding Own Sub-Windows / Sub-Menus / Views with C#-Addin
« Reply #2 on: August 25, 2016, 09:17:56 pm »
Hi Geert,

thanks for the fast reply. I will try it soon. Another question comes in my mind - it is also possible to adjust the appearance of the "Property view" if a specific Object Type / Stereotype. For example, the <<table>>-Stereotype for DataModeling has a tab in its property view called "Table Detail" with a specific view. Can i create views like these for my own Stereotypes? (If yes, how? ^^)

Thanks
Erik

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Embedding Own Sub-Windows / Sub-Menus / Views with C#-Addin
« Reply #3 on: August 25, 2016, 09:37:29 pm »
No easy way. You could write your own window for that and react to EA events. But it's quite some work.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Embedding Own Sub-Windows / Sub-Menus / Views with C#-Addin
« Reply #4 on: August 25, 2016, 09:52:21 pm »
You'll have to implement the event EA_OnContextItemDoubleClicked and return true to indicate that EA doesn't have to show its own properties window.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Embedding Own Sub-Windows / Sub-Menus / Views with C#-Addin
« Reply #5 on: August 26, 2016, 09:41:17 am »
You'll have to implement the event EA_OnContextItemDoubleClicked and return true to indicate that EA doesn't have to show its own properties window.

Geert
Hi Geert,

Could I use that to intercept the double-click and stop the Properties window coming up at all?  The variability of the double-click - sometimes it brings up the Properties window and other times it opens the attached diagram is quite confusing (not just for new users).  If I forced everyone to use [Alt+Enter] to open properties, we'd at least be consistent...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Embedding Own Sub-Windows / Sub-Menus / Views with C#-Addin
« Reply #6 on: August 26, 2016, 01:45:23 pm »
You'll have to implement the event EA_OnContextItemDoubleClicked and return true to indicate that EA doesn't have to show its own properties window.

Geert
Hi Geert,

Could I use that to intercept the double-click and stop the Properties window coming up at all? 
That's the idea yes. I'm not sure what happens with alt-enter though. (I've actually never used that method myself)

Geert