Book a Demo

Author Topic: BroadCast event when a package imported from a XMI  (Read 2978 times)

erhanleblebici

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
BroadCast event when a package imported from a XMI
« on: December 02, 2009, 10:33:05 am »


Dear EA Community,

Is there any broad cast event, which is fired when the user imports a package from a XMI-File in ProjectBrowser ?


thank you,

Erhan

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: BroadCast event when a package imported from a
« Reply #1 on: December 02, 2009, 06:35:48 pm »
Erhan,

I don't think there are specific event for xmi import, but you could try the EA_OnPreDeletePackage event or EA_OnPreNewPackage
If my assumptions are correct then EA will delete a package prior to importing it and then create it new from scratch. Hopefully the events get fired then as well.

Geert

erhanleblebici

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: BroadCast event when a package imported from a
« Reply #2 on: December 03, 2009, 12:01:36 am »
Geert,

thank you for your answer. But unfortunately the events EA_OnPreNewPackage and EA_OnPreDeletePackage are not fired, when I import a model from a XMI-File.

the event EA_OnContextItemChanged is fired, but it is really dirty to make my implementation against XMI-imports in this method.

I can't believe that there are no broadcast events for creating a new model by XMI-import :(

« Last Edit: December 03, 2009, 12:07:09 am by erhanleblebici »