summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaren Butzke2012-11-28 09:49:05 (EST)
committerKaren Butzke2012-11-28 09:49:05 (EST)
commitbc6d0695dc8b22fbb4a38ef39c4276cfe3f8b4d5 (patch)
treec52388e9e39a315e99dec9daf033ca044bb91759
parent073641c5456670157ff5eb1b744f7ca9b3ebc1e6 (diff)
downloadwebtools.dali-bc6d0695dc8b22fbb4a38ef39c4276cfe3f8b4d5.zip
webtools.dali-bc6d0695dc8b22fbb4a38ef39c4276cfe3f8b4d5.tar.gz
webtools.dali-bc6d0695dc8b22fbb4a38ef39c4276cfe3f8b4d5.tar.bz2
show JPA details page for 2.1 entity mappings
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/jpa2/details/orm/EntityMappings2_0DetailsProvider.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/jpa2/details/orm/EntityMappings2_0DetailsProvider.java b/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/jpa2/details/orm/EntityMappings2_0DetailsProvider.java
index 503d4ec..38a8e1f 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/jpa2/details/orm/EntityMappings2_0DetailsProvider.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/jpa2/details/orm/EntityMappings2_0DetailsProvider.java
@@ -13,6 +13,7 @@ import org.eclipse.jpt.common.core.JptResourceType;
import org.eclipse.jpt.common.ui.WidgetFactory;
import org.eclipse.jpt.jpa.core.context.orm.EntityMappings;
import org.eclipse.jpt.jpa.core.internal.jpa2.context.orm.GenericOrmXml2_0Definition;
+import org.eclipse.jpt.jpa.core.internal.jpa2.context.orm.GenericOrmXml2_1Definition;
import org.eclipse.jpt.jpa.ui.details.JpaDetailsPageManager;
import org.eclipse.jpt.jpa.ui.details.JpaDetailsProvider;
import org.eclipse.jpt.jpa.ui.internal.details.AbstractEntityMappingsDetailsProvider;
@@ -46,7 +47,8 @@ public class EntityMappings2_0DetailsProvider
@Override
protected boolean providesDetails(JptResourceType resourceType) {
- return resourceType.equals(GenericOrmXml2_0Definition.instance().getResourceType());
+ return resourceType.equals(GenericOrmXml2_0Definition.instance().getResourceType())
+ || resourceType.equals(GenericOrmXml2_1Definition.instance().getResourceType());
}
public JpaDetailsPageManager<EntityMappings> buildDetailsPageManager(