Author Topic: MDG for Eclipse: How to access the model using Jav  (Read 3684 times)

UlrichF

  • EA Novice
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
MDG for Eclipse: How to access the model using Jav
« on: May 04, 2015, 11:42:59 pm »
I installed MDG for eclipse presumably successful. I can see the EA menu and the Project Explorer in Eclipse.

Now I'm looking for a way to access the model programmatically and naively tried

      a = EclipseManager.getManager();
      b = a.getAllProjects();
        ...

but that failed miserably with

  Caused by: java.lang.ClassNotFoundException:   org.eclipse.core.runtime.InvalidRegistryObjectException

Any ideas what I'm doing wrong or where I can find information on how to programmatically access the model from within Eclipse? Links to working example code is welcome ;-)

Thanks,
  Ulrich


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: MDG for Eclipse: How to access the model using
« Reply #1 on: May 05, 2015, 09:27:58 am »
1. Our API isn't available from the Eclipse API.
2. You're getting an error long before EA would come into play at all. The only way EA could be involved is if it integrates as a project type, (I don't think so) and hasn't set up the registry properly. If that's the case, there's also something wrong with your environment because it's trying to throw an exception that it doesn't know about.

PS. I'm not a Java programmer and I have only a passing knowledge of Eclipse. Yet that error still seems self explanatory to me.