Author Topic: Insert a new Element in a available Element  (Read 17867 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13136
  • Karma: +547/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Insert a new Element in a available Element
« Reply #30 on: November 18, 2010, 10:45:03 pm »
Just a regular Windows Forms application with a button or something to start your test.
That's how I usually test my addins (avoids having to restart EA each time you recompile)

Geert

marine1981

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Re: Insert a new Element in a available Element
« Reply #31 on: November 18, 2010, 10:52:42 pm »
How I can define/create the object wrappedModel becaus Visual doesn't know it.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13136
  • Karma: +547/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Insert a new Element in a available Element
« Reply #32 on: November 18, 2010, 10:54:56 pm »
wrappedModel is a variable I defined of type EA.Repository.
The snippet is part of my wrapper class for EA.Repository.

Geert

marine1981

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Re: Insert a new Element in a available Element
« Reply #33 on: November 18, 2010, 11:01:41 pm »
I have created the application.
How I use the application to debug, now?
« Last Edit: November 18, 2010, 11:06:34 pm by marine1981 »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13136
  • Karma: +547/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Insert a new Element in a available Element
« Reply #34 on: November 18, 2010, 11:07:41 pm »
Start it and put a breakpoint in your operation, then you can go step by step.

Geert

marine1981

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Re: Insert a new Element in a available Element
« Reply #35 on: November 18, 2010, 11:16:26 pm »
How I set under Debuggen=> Startoptions the command/arguments? Which folder does it need?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13136
  • Karma: +547/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Insert a new Element in a available Element
« Reply #36 on: November 18, 2010, 11:25:38 pm »
Sven, if you have created a windows forms application you should be able to just start it by clicking the green |> icon.

Geert

marine1981

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Re: Insert a new Element in a available Element
« Reply #37 on: November 18, 2010, 11:30:04 pm »
Hello,
it is possible to start but i get a message "A Project with the Type "ClassLibery" cannot start directly".

« Last Edit: November 18, 2010, 11:30:55 pm by marine1981 »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13136
  • Karma: +547/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Insert a new Element in a available Element
« Reply #38 on: November 18, 2010, 11:36:56 pm »
That's because you have to start of project of type "Windows Forms Application"

Geert

marine1981

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Re: Insert a new Element in a available Element
« Reply #39 on: November 18, 2010, 11:44:10 pm »
Yes, of course. Thats my problem so i cannot debug.