Author Topic: Templates - but not about classes!!  (Read 4261 times)

ms_butterfly

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • When you think it's bad, relax: it can get worse
    • View Profile
Templates - but not about classes!!
« on: July 27, 2004, 03:21:31 am »
Hi!
I want to use UML templates in my projects...for example, to have a standard project, with some classes that are always used, and model the other projects over this one (like the MS Word's templates).
I could make a work-around saving a project, marking as read-only and always starting from this project and "Saving AS", but I wonder if there is a easier way...
thanx!

JP

  • Guest
Re: Templates - but not about classes!!
« Reply #1 on: July 27, 2004, 05:17:35 am »
Why don't you create a pattern of your own ?
This is typically the kind of situation where it applies.
EA allows users to define theirs.
JP

ms_butterfly

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • When you think it's bad, relax: it can get worse
    • View Profile
Re: Templates - but not about classes!!
« Reply #2 on: July 27, 2004, 05:51:50 am »
yeah, i think it can be a good idea. But I'm trying to test the pattern stuff and, when I add a pattern to a diagram, the button "Finish" does not become enabled!!

ms_butterfly

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • When you think it's bad, relax: it can get worse
    • View Profile
Re: Templates - but not about classes!!
« Reply #3 on: July 27, 2004, 07:33:30 am »
Anyway, I still think I need to make a template...

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Templates - but not about classes!!
« Reply #4 on: July 27, 2004, 08:31:48 am »
Hi,

there is an easy solution. Create a new project and build the template, i.e. build the package structure that you want to always use, build the classes that you want to have in your every project etc.
Then, when you want to create a new project, notice that in the window (File > New) you are asked for the Model Project (by default EABase.eap). Just replace this with the path to the model project you have created yourself.

Hope this helps!

Bruno

ms_butterfly

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • When you think it's bad, relax: it can get worse
    • View Profile
Re: Templates - but not about classes!!
« Reply #5 on: July 28, 2004, 01:10:20 am »
Hum...great idea Bruno...and will this Model Project add any overhead in the project?
Thanx!

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Templates - but not about classes!!
« Reply #6 on: July 28, 2004, 05:39:12 am »
Hi,

I do not think it will add any overhead, at least I don't see how it would.
You are already using a model project when creating new EA Project, only this mo0del project, this template, has been created by SparxSystems and it contains nothijg but package structure.

Bruno

ms_butterfly

  • EA User
  • **
  • Posts: 42
  • Karma: +0/-0
  • When you think it's bad, relax: it can get worse
    • View Profile
Re: Templates - but not about classes!!
« Reply #7 on: July 30, 2004, 02:23:50 am »
Thanx Bruno, it really worked!  ;D
have a nice day!

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Templates - but not about classes!!
« Reply #8 on: July 30, 2004, 05:45:43 am »
Glad to have helped! :-)