Book a Demo

Author Topic: Accessing Java Collection Classes within Add-In  (Read 4068 times)

domi55

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Accessing Java Collection Classes within Add-In
« on: April 03, 2012, 06:02:15 am »
Hi all,

I'm currently developing my first EA Add-In. I need to retrieve the default Java Collection Class (Tools -> Options -> Source Code Engineering -> Java -> Collection Classes):



How can I do that programmatically?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Accessing Java Collection Classes within Add-I
« Reply #1 on: April 03, 2012, 03:21:26 pm »
AFAIK there's no specific API method available for this.
So you'll have to get it yourself from the database then (as with lots of the more "advanced" stuff)
You can use Repository.SQLQuery() to run a query.
In this case, I think what you are looking for can be found in the table t_genopt

Geert

domi55

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Accessing Java Collection Classes within Add-I
« Reply #2 on: April 05, 2012, 02:09:06 am »
Thanks Geert,

Do you know where I can find an overview of all the EA SQL tables?

Is this somewhere documented?

domi55

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Accessing Java Collection Classes within Add-I
« Reply #3 on: April 05, 2012, 02:25:20 am »
nvm... found the following site:

http://www.sparxsystems.com/enterprise_architect_user_guide/projects_and_teams/createopenmodelfileoverview.html

So I just opened my .eap file with Microsoft Access.