Author Topic: I want to reference a class in another project  (Read 465 times)

10Pints

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
I want to reference a class in another project
« on: August 24, 2013, 08:43:07 pm »
Hi - this must be possible:
I want to factor common "toolkit" functionality and share between 2 projects  so I was thinking of having a separate eap file for the toolkit project
and then referencing it from each of the application projects  that use it.

But I am struggling to find it- must be possible

any thoughts? Thanks  -Terry

Helmut Ortmann

  • EA User
  • **
  • Posts: 884
  • Karma: +37/-1
    • View Profile
Re: I want to reference a class in another project
« Reply #1 on: August 24, 2013, 10:11:19 pm »
Hi Terry,

there are some solutions with pros & cons.

1. Use a DBMS and put all projects in one repository
If models/projects share information it's a hint to to put them in one repository. That's my favorite. DBMS have advantages when modeling in a team.

2. Use Configuration Management
You can share packages by Version Control. With that you can reuse packages in other projects.

3. Simply input the GUID of the element you want to reference to.
You can optimize that with an addin/script which opens the other repository.
With a GUID access to an element can be done by a little query/search.

Helmut



Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 7729
  • Karma: +165/-21
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: I want to reference a class in another project
« Reply #2 on: August 26, 2013, 09:49:47 pm »
We have the same situation and we use option 2 to share a common framework model between different application models.

Geert