Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - z.kadlec

Pages: [1]
Hi all,

I have prepared an add-in for EA allowing specification of user dialogs via XML definition (the layout of fields, text fields, comboboxes etc). We use it for evidence of many types of information on elements/packages userfrendly and efficiently. There is abou 200 of users to use it.

When user doubleclicks on an element, the add-in checks the stereotype, and if registered in addin configuration, the form is shown. The dialog respects locks. In case user open an instance, the addin can open the instance or the classifier (dependes on the xml configuration of the add-in).

Each form is having a "new" button allowing to create the childs - the allowed stereotypes and object_types for that childs are specified also in the add-in configuration.

Currenty I'm preparing the subform to show/create relations & instances in a bit more userfriendly way than the EA proposes corrently.

I don't know, if it would be usefull for anyone else - currently there is lot of systém messages of the addin in czech only (but labels on the form you can write in language you preffer :), some of messages are localized, but I don'n know, if it make sense to translate the rest... and that is the objective I wrote this topic - if there is someone in EA community, who will see added value for the add-in working....

Make it sense for somebody to use it? It is tested on czech / english Windows only :-) May be there can be problems with installation etc :) :)

I don't know where to store here some screenshots & cfg example... :-(

General Board / c++ exported class reengineering
« on: January 03, 2004, 11:15:30 pm »

I write a dynamic libraries in C++ usable on Win32 and UNIX.
There are exported classes in that libraries.
Because UNIX and Win32 are in this not compatible, I use my macro (named MY_DLLEXPORTCLASS).



When I'm importing classes form a source (*.h), EA create lot of classes named MY_DLLEXPORTCLASS   ;-(

I thing, to solve this problem, there could be a list of MACROs (or simply any text phrases), which should be
ingnored on source parsing.


General Board / Logical datatypes - how to have 1 model for N db
« on: June 24, 2003, 08:57:55 pm »

I'm modeling a systems, witch must work on informix, oracle, postgreSQL and ODBS (msaccess).

So I need to have 1 db model with logical datatypes.

Then I will define the mapping of logical types to fysical types for each of db type interested for me (for example: logical type XY is in informix mapped as DATETIME, in ORACLE as DATE, etc.).

This is crucial for my work, because the model is large and have N-times the same model with only differend datatypes depend on db type - it is problem.

Are you planned to support this feature? Or is still supported and I'm only stupid, that I cant find it?

Thanks for replay (and sorry for my english ;-))

Zdenek Kadlec

At last I will mey be generate an DDL for any type of registered DB machines - with using of gy

Bugs and Issues / Add-in - ?BUG? EA_OnContextItemDoubleClicked
« on: January 26, 2008, 12:00:47 pm »
Hi all,

I write sometimes Add-ins...

Method EA_OnContextItemDoubleClicked is very usefull:

* if that method returns false, the standard EA dialog will be shown.
* if it returns true, nothing in shown.

But I have some problem with it:

If the function return true, the name of the doubleclicked element in the project browser disappers. Why? Is it my mistake?

I prepared simple example in C# to demonstrate this behavior:
- if you doubleclick in project Browseron an element with Shift key pressed, the function returns true, and the name should disappear in the project browser.
- if you doubleclick in project Browser on an element without any key, function returns false... and the standrad dialog will be shownd and the name of the element in the project browser stay visible.

Does somebody the same experience? Is it reproducable by anybody else?

Thanks for any hint

Zdenek Kadlec

Code: [Select]
public bool EA_OnContextItemDoubleClicked(EA.Repository repository, string GUID , EA.ObjectType ot)
           if (( Control.ModifierKeys & Keys.Shift) > 0 )
               return true;
           return false;

Automation Interface, Add-Ins and Tools / ShapeScript - print - addin
« on: January 17, 2012, 11:11:21 am »
Dear all,

in shape-script documentation, in the section Display Element/Connector Properties in the help of EA (Standard UML Models->Define Modelling Language -> MDG Technology SDK -> Shap Script -> Write Scripts -> Display Element/Connector Properties...)

you can find:

"Properties for Element Shape Scripts
  • addin (value returned from an Add-In)

What does it mean? Would it be a way, how to put my own values into Shape Script?

I was not successful asking Uncle Google nor EA.Forum...

Thanks for any experience/example/explanation...



is it possible to open the Search<item> dialog via automation interface?

I have some dialog in my add-in and I need to allow to the user to select some elements of specific stereotype... so I need to open some "element selector" form my code, wait to the element selection done by the user and then get the ElementID selected by client and use it somewhere in my application..

I tried to find it out in the automation interface, but I was not successfull.... :(

Thanks for your answer...

Zdene Kadlec


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))
   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.

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)


Zdenek Kadlec
Business Process Architect
(I’m sorry for my english)

Pages: [1]