* @see ProjectRunClassPathClassLoaderUtils#getClassLoader
*/
public static ClassLoader getDesignTimeClassLoader() {
ClassLoader retval = Thread.currentThread().getContextClassLoader();
// During design time we need to get all the classloaders from the active workspace
final Workspace activeWorkspace = Ide.getActiveWorkspace();
for (Object child : activeWorkspace.getListOfChildren()) {
if (child instanceof Reference) {
oracle.ide.model.Node node = ((Reference) child).getData();
if (node instanceof Project) {
final Project project = (Project) node;
// Create a child classloader for the project with the current classloader as parent.