Book a Demo

Author Topic: Toolbox item "Interface" drops prefilled object  (Read 3627 times)

Emilio

  • EA User
  • **
  • Posts: 78
  • Karma: +0/-0
    • View Profile
Toolbox item "Interface" drops prefilled object
« on: February 27, 2009, 11:04:05 pm »
Something very weird is happening in one of the models I am working on today. I am busy with a domain model (diagram type: class) and originally I had drawn there an interface, say IActions with several methods.

Then I deleted that interface from the diagram and moved the interface definition (IActions) to a class model.

Now I am continuing with my domain model and from the toolbox I select the "INTERFACE" object to drop it onto my drawing surface (the diagram).

Well, up until now it would give it a name Interface1 and it would be empty (no methods, no descriptions, etc.). That has changed, now whenever I drop an interface from the toolbox into the diagram I get a FULL COPY of the original interface I discarded and moved (IActions)!!!

The only way I can get an empty one now is to take that one, delete the description/note, delete all the interface operations and do Copy followed by Paste as New.

How come did the toolbox interface get "corrupted" ? is there a way to fix that? I am using EA 7.1 build 831.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Toolbox item "Interface" drops prefilled objec
« Reply #1 on: February 28, 2009, 01:57:58 am »
Looks like the package containing you interface is the "tenmplate package" for the project. You can change it in the "Settings - Template Package" menu.

Emilio

  • EA User
  • **
  • Posts: 78
  • Karma: +0/-0
    • View Profile
Re: Toolbox item "Interface" drops prefilled objec
« Reply #2 on: February 28, 2009, 02:34:25 am »
Vielen Dank! that was indeed the problem. I have no idea how that class model suddenly became the "template package" but I used your information to resolve the problem:

1. Menu: Settings | Template Package
2. Dialog: Set template package in the tree to <none>

This "accident" however brings new possibilities provided one can save a template package but I don't think that is possible.

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Toolbox item "Interface" drops prefilled objec
« Reply #3 on: February 28, 2009, 10:05:10 am »
Gern geschehen.

Happened to me as well. I think by default the template package is the model root, and everything you put directly underneath it will be coming back like a bad penny.

Never tried out though  if it works for a package within the template package.