Book a Demo

Author Topic: understanding EA_OnContextItemDoubleClicked  (Read 3295 times)

gilles2

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
understanding EA_OnContextItemDoubleClicked
« on: August 28, 2009, 11:36:50 pm »
Hi everyone,

here is my problem.
I found a lot of post in the forum about this subject but that's still not clear for me.

I am developping an add-in that intends to substitute EA dialogs for some elements.

For creation of the element everything is ok.
I use EA_OnPostNewElement method.
this method returns true to notify EA the addin does the creation job
I update my element
I modify SuppressEADialogs property to true
all is fine

On modification here come my problems.
I see two useful methods.
EA_OnContextItemDoubleClicked
EA_OnNotifyContextItemModified
SuppressEADialog has no effect here ! It is written in EA documentation
But if you return true in method EA_OnContextItemDoubleClicked you notify EA not to treat the update and EA dialog is not opened.


But
in project browser, the name of the element modified is not refreshed.
the name dissapears and only its stereotype is visible, if you click on the element, its name comes again.

So i look into the forum
find
refresh on elelement -> no effect
adviseElementChange on repository -> no effect
RefreshModelView on repository -> it reloads everything, backup dialog are shown for modifed diagrams, when reloaded, elements are not in the same order in package which is much more disturbing for user that a name not displaying.

Do you have any idea ?

Thanks,
Gilles