Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 405320 | Differences between
and this patch

Collapse All | Expand All

(-)a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java (-1 / +7 lines)
Lines 30-35 Link Here
30
import org.eclipse.core.runtime.IPath;
30
import org.eclipse.core.runtime.IPath;
31
import org.eclipse.core.runtime.IProgressMonitor;
31
import org.eclipse.core.runtime.IProgressMonitor;
32
import org.eclipse.core.runtime.IStatus;
32
import org.eclipse.core.runtime.IStatus;
33
import org.eclipse.core.runtime.Platform;
33
import org.eclipse.core.runtime.Status;
34
import org.eclipse.core.runtime.Status;
34
import org.eclipse.core.runtime.content.IContentType;
35
import org.eclipse.core.runtime.content.IContentType;
35
import org.eclipse.core.runtime.jobs.ISchedulingRule;
36
import org.eclipse.core.runtime.jobs.ISchedulingRule;
Lines 609-617 Link Here
609
	}
610
	}
610
611
611
	protected ProjectResourceLocator getProjectResourceLocator() {
612
	protected ProjectResourceLocator getProjectResourceLocator() {
612
		return (ProjectResourceLocator) this.project.getAdapter(ProjectResourceLocator.class);
613
		Object resourceLocator =  this.project.getAdapter(ProjectResourceLocator.class);
614
		if (resourceLocator == null) {
615
			resourceLocator = Platform.getAdapterManager().loadAdapter(this.project, ProjectResourceLocator.class.getName());
616
		}
617
		return (ProjectResourceLocator) resourceLocator;
613
	}
618
	}
614
	
619
	
620
	
615
	/**
621
	/**
616
	 * Log any developer exceptions and don't build a JPA file rather
622
	 * Log any developer exceptions and don't build a JPA file rather
617
	 * than completely failing to build the JPA Project.
623
	 * than completely failing to build the JPA Project.

Return to bug 405320