Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfullbright2010-08-11 22:08:45 +0000
committerpfullbright2010-08-11 22:08:45 +0000
commit0cc4145c44c754abdf2c9a2b85f94058c0d87e0c (patch)
tree343339e2c88d40cfb6f3d48747a1fa2996abd6b1 /jpa/plugins/org.eclipse.jpt.core
parent9943f49523760ccd684bbc3e1e51ad063d6f6df2 (diff)
downloadwebtools.dali-0cc4145c44c754abdf2c9a2b85f94058c0d87e0c.tar.gz
webtools.dali-0cc4145c44c754abdf2c9a2b85f94058c0d87e0c.tar.xz
webtools.dali-0cc4145c44c754abdf2c9a2b85f94058c0d87e0c.zip
bug 322442 - added validation builder to facet install delegate
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.core')
-rw-r--r--jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/facet/JpaFacetInstallDelegate.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/facet/JpaFacetInstallDelegate.java b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/facet/JpaFacetInstallDelegate.java
index e8b478186e..84253fe8ab 100644
--- a/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/facet/JpaFacetInstallDelegate.java
+++ b/jpa/plugins/org.eclipse.jpt.core/src/org/eclipse/jpt/core/internal/facet/JpaFacetInstallDelegate.java
@@ -29,6 +29,7 @@ import org.eclipse.jpt.utility.internal.ArrayTools;
import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.eclipse.wst.validation.ValidationFramework;
/**
* We don't really "install" the JPA facet here. We simply store all the various
@@ -44,12 +45,12 @@ public class JpaFacetInstallDelegate
IProject project, IProjectFacetVersion fv,
Object config, IProgressMonitor monitor) throws CoreException {
- // NB: WTP Natures (including the JavaEMFNature)
- // should already be added, as this facet should
- // always coexist with a module facet.
SubMonitor sm = SubMonitor.convert(monitor, 10);
+ ValidationFramework.getDefault().addValidationBuilder(project);
+
super.execute_(project, fv, config, sm.newChild(1));
+
IJavaProject javaProject = JavaCore.create(project);
IDataModel dataModel = (IDataModel) config;

Back to the top