What call from the Android Development Tools API should I use to poll project target loading?

Posted by Ricardo Gladwell on Stack Overflow See other posts from Stack Overflow or by Ricardo Gladwell
Published on 2010-04-29T14:04:21Z Indexed on 2010/04/29 14:07 UTC
Read the original article Hit count: 389

I'm writing my own eclipse plug-in that integrates with the Eclipse Android Development Tools (ADT).

However, I'm getting a CoreException ("Project target not loaded yet.") thrown when I attempt to call IProject.build on an Android project as part of a unit test:

IProject project = importProject(...);
project.build(IncrementalProjectBuilder.FULL_BUILD, monitor);

Should I be waiting for the project target to load before calling the above? If so, what call should I use to poll the project target loading status?

© Stack Overflow or respective owner

Related posts about android

Related posts about android-sdk