Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfullbright2009-05-08 15:39:19 -0400
committerpfullbright2009-05-08 15:39:19 -0400
commit09852156fa84217bc12b31a4f94f789a5c5c02c4 (patch)
treede22d95defad48f524005a8fb7e6ce1b03131653
parent79bda68b2351141c585f2dacb4813ad747ba9280 (diff)
downloadwebtools.dali-R2_0_maintenance.tar.gz
webtools.dali-R2_0_maintenance.tar.xz
webtools.dali-R2_0_maintenance.zip
[275182] - backported fix for importing projects from archiveR2_0_maintenance
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/JpaModelManager.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/JpaModelManager.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/JpaModelManager.java
index 1e21e392ef..64c1091423 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/JpaModelManager.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/JpaModelManager.java
@@ -61,8 +61,8 @@ import org.eclipse.wst.common.project.facet.core.events.IProjectFacetActionEvent
* - Project closed
* facet PROJECT_MODIFIED
*
- * - Pre-existing project imported (created and opened)
- * resource POST_CHANGE -> PROJECT -> CHANGED -> OPEN
+ * - Pre-existing project imported from directory or archive (created and opened)
+ * resource POST_CHANGE -> PROJECT -> ADDED -> OPEN
* - Project deleted
* resource PRE_DELETE
*
@@ -331,7 +331,8 @@ public class JpaModelManager {
this.checkDeltaFlagsForOpenedProject(project, delta);
break;
case IResourceDelta.REMOVED : // already handled with the PRE_DELETE event
- case IResourceDelta.ADDED : // all but project rename handled with the facet POST_INSTALL event
+ case IResourceDelta.ADDED : // all but project import and rename handled with the facet POST_INSTALL event
+ this.checkDeltaFlagsForOpenedProject(project, delta);
this.checkDeltaFlagsForRenamedProject(project, delta);
break;
case IResourceDelta.ADDED_PHANTOM : // ignore

Back to the top