Book a Demo

Author Topic: Is there any way to prevent Propertie Dialogue  (Read 4808 times)

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Is there any way to prevent Propertie Dialogue
« on: May 18, 2010, 08:20:24 am »
I search for a way to prevent the opening of the properties dialogue when i create a specific element from the toolbox.
Do you have any idea ?

THX

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Is there any way to prevent Propertie Dialogue
« Reply #1 on: May 18, 2010, 08:35:49 am »
Look at the documentation for Repository.SuppressEADialogs.

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Is there any way to prevent Propertie Dialogue
« Reply #2 on: May 18, 2010, 08:49:24 am »
I tried but for some reason it has no effect.

public bool EA_OnPostNewElement(EA.Repository Repository,
EA.EventProperties Info)
        {
            Repository.SuppressEADialogs = true;
            return true;
        }

i tried both with false and true but nothing.


PS.

I use EA 8.0.856 build 856
where is my mistake?

stao
« Last Edit: May 18, 2010, 08:54:45 am by stao »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Is there any way to prevent Propertie Dialogue
« Reply #3 on: May 18, 2010, 04:22:38 pm »
What happens if you put that code into the EA_OnPreNewElement ?

Geert

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Is there any way to prevent Propertie Dialogue
« Reply #4 on: May 18, 2010, 08:20:44 pm »
nothing :(


::Update

If i create standard Elements like "class" from the toolbox the properties stay close but if i create a stereotyped element it opens.
« Last Edit: May 18, 2010, 09:34:52 pm by stao »

clicht

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Is there any way to prevent Propertie Dialogue
« Reply #5 on: September 22, 2010, 06:00:43 pm »
I have the same problem. My Version is 8.0.855.
The version history (see http://www.sparxsystems.com/products/ea/6.5/history.html#804) suggest me with "Resolved issue where 'Suppress EA Dialogs' setting was ignored when creating profiled elements." that there was in this version a very similar problem.

Have anyone a soulution for this problem.

What I want to do is to display for my profile elements a own property window during creation and while editing.
Is there a other way to do that?
« Last Edit: September 22, 2010, 06:01:25 pm by clicht »

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: Is there any way to prevent Propertie Dialogue
« Reply #6 on: September 25, 2010, 02:43:16 am »
i "solved" the problem by adding only the standard uml types to my diagram opening my own property window and setting the stereotype after that.
luckily i have only one stereotype per uml type.
very annoying issue.