Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 231821 Details for
Bug 405320
Intermittent failure on JPA project creation when starting Eclipse
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Temp patch
405320.txt (text/plain), 1.38 KB, created by
Neil Hauge
on 2013-05-31 11:26:48 EDT
(
hide
)
Description:
Temp patch
Filename:
MIME Type:
Creator:
Neil Hauge
Created:
2013-05-31 11:26:48 EDT
Size:
1.38 KB
patch
obsolete
>diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java >index 5c9e327..2677d19 100644 >--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java >+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java >@@ -30,6 +30,7 @@ > import org.eclipse.core.runtime.IPath; > import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.core.runtime.IStatus; >+import org.eclipse.core.runtime.Platform; > import org.eclipse.core.runtime.Status; > import org.eclipse.core.runtime.content.IContentType; > import org.eclipse.core.runtime.jobs.ISchedulingRule; >@@ -609,9 +610,14 @@ > } > > protected ProjectResourceLocator getProjectResourceLocator() { >- return (ProjectResourceLocator) this.project.getAdapter(ProjectResourceLocator.class); >+ Object resourceLocator = this.project.getAdapter(ProjectResourceLocator.class); >+ if (resourceLocator == null) { >+ resourceLocator = Platform.getAdapterManager().loadAdapter(this.project, ProjectResourceLocator.class.getName()); >+ } >+ return (ProjectResourceLocator) resourceLocator; > } > >+ > /** > * Log any developer exceptions and don't build a JPA file rather > * than completely failing to build the JPA Project.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 405320
:
229540
|
231821
|
231822