Author Topic: calling Add-In from Java  (Read 2531 times)

xkrystof

  • EA User
  • **
  • Posts: 29
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
calling Add-In from Java
« on: December 12, 2007, 05:41:39 am »
Hi,

is it possible to call my Add-In from an API? ie. from Java, ...

thanks

jan

thomaskilian

  • Guest
Re: calling Add-In from Java
« Reply #1 on: December 12, 2007, 05:51:56 am »
Not that I heard of. But as it is your add-in you could easily make the interface to where you need it.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: calling Add-In from Java
« Reply #2 on: December 12, 2007, 06:57:02 am »
Perhaps there is a roundabout way to do this.

I have not tried this, so think it through and test it well (if it doesn't fail right away).

Since an add-in is a callable COM program (dll or exe), you should be able to call its public routines. If you're calling from Java, you've already got some bridge software since this was needed to reach the EA API.

The trick is to get EA and the add-in to cooperate. You would have to ensure that the add-in was loaded automatically by EA. There is a call to close add-ins via the API - to address a .Net requirement, but it works for all - but no corresponding calls to enumerate add-ins, or to load and unload add-ins individually.

HTH, David
No, you can't have it!

thomaskilian

  • Guest
Re: calling Add-In from Java
« Reply #3 on: December 12, 2007, 07:26:47 am »
Actually I do that with my add-ins. They are call from a wrapper that supplies the necessary info. So if I change the wrapper the add-in can work stand-alonee.