Dears,
I have prepared plug-in implementing Broadcast Event :
Function EA_OnContextItemDoubleClicked(Repository As EA.Repository, GUID As String, ot As EA.ObjectType) As Boolean
If ot = otElement Then
EA_OnContextItemDoubleClicked = openFormByType(Repository, Repository.GetElementByGuid(GUID))
ElseIf ot = otPackage Then
EA_OnContextItemDoubleClicked = openFormByType(Repository, Repository.GetPackageByGuid(GUID))
ElseIf ot = otConnector Then
EA_OnContextItemDoubleClicked = openFormByConnType(Repository, Repository.GetConnectorByGuid(GUID))
Else
EA_OnContextItemDoubleClicked = False
Repository.SuppressEADialogs = False
End If
End Function
This funciton call function openFormByType(…) which opens my dialog.
It works well, but if I would like to open this dialog in situation, when the name of the element is too long, then:
a)I select the element in repository
b)EA show „tool tip“ with whole name of element (the yellow box)
c)I doubleclick on the element (the tooltip is visible)
d)my plug-in opens the dialog (the tooltip is visible)
e)EA hides the tool tip with the element name (after some time period 1-2 sec)
f)=> EA shut down my plug-in and whole EA is in deadlock
If the name of the element is short and EA don’t show any tool tip, the plug-in has any problem and works well.
This error was also in EA 6.1.
Trick:
if before opening my dialog I open simply msgbox like:
msgbox "Hey, wait 3 seconds“
then if there is shown the tool tip with full name of the selected element, then after the tool tip is hidden, EA shuts down the msgbox. My plug-in continues with processing of my target form and evrithing is OK…but….it is not nice to explain to others, why they should wait 3 sec…
This is for me very crucial to solve this problem – we plan to use EA to model whole Bank processes, but we need do store more information about them (I use Tags) and we need to have our own form (simplification of data input – we have more then 1000 processes)
Thanks
Zdenek Kadlec
Business Process Architect
(I’m sorry for my english)