summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaren Butzke2012-09-07 12:25:42 (EDT)
committerKaren Butzke2012-09-07 12:25:42 (EDT)
commit2895790d41082cae2d316c5a45ee06dd4241c9d9 (patch)
tree15e0999c5edc57ea949a4d74bcfe9a695b98d122
parentc2510e9fda17ae0e8dc1c3016f8a8aedfe295061 (diff)
downloadwebtools.dali-2895790d41082cae2d316c5a45ee06dd4241c9d9.zip
webtools.dali-2895790d41082cae2d316c5a45ee06dd4241c9d9.tar.gz
webtools.dali-2895790d41082cae2d316c5a45ee06dd4241c9d9.tar.bz2
removed now unnecessary validation methods
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/MappingFile.java12
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/java/JarFile.java12
2 files changed, 2 insertions, 22 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/MappingFile.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/MappingFile.java
index 295de4b..a6621ea 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/MappingFile.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/MappingFile.java
@@ -9,19 +9,15 @@
******************************************************************************/
package org.eclipse.jpt.jpa.core.context;
-import java.util.List;
import org.eclipse.core.resources.IFolder;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IType;
-import org.eclipse.jpt.common.core.utility.TextRange;
import org.eclipse.jpt.jpa.core.JpaStructureNode;
import org.eclipse.jpt.jpa.core.context.orm.MappingFileDefinition;
import org.eclipse.jpt.jpa.core.context.persistence.MappingFileRef;
import org.eclipse.jpt.jpa.core.context.persistence.PersistentTypeContainer;
import org.eclipse.text.edits.DeleteEdit;
import org.eclipse.text.edits.ReplaceEdit;
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.validation.internal.provisional.core.IReporter;
/**
* JPA mapping file (typically <code>orm.xml</code>).
@@ -69,14 +65,6 @@ public interface MappingFile
*/
Object getResourceMappingFile();
- // TODO remove when XmlContextNode.validate(...)
- // is moved to JpaContextNode (and JavaJpaContextNode.validate(...) is gone as a result)
- void validate(List<IMessage> messages, IReporter reporter);
-
- // TODO remove when XmlContextNode.validate(...)
- // is moved to JpaContextNode (and JavaJpaContextNode.validate(...) is gone as a result)
- TextRange getValidationTextRange();
-
// ********** queries/generators **********
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/java/JarFile.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/java/JarFile.java
index e71862f..8886174 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/java/JarFile.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/context/java/JarFile.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2011 Oracle. All rights reserved.
+ * Copyright (c) 2009, 2012 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -9,14 +9,11 @@
******************************************************************************/
package org.eclipse.jpt.jpa.core.context.java;
-import java.util.List;
import org.eclipse.core.resources.IFolder;
import org.eclipse.jpt.common.core.resource.java.JavaResourcePackageFragmentRoot;
import org.eclipse.jpt.jpa.core.JpaStructureNode;
import org.eclipse.jpt.jpa.core.context.JpaContextNode;
import org.eclipse.jpt.jpa.core.context.persistence.PersistentTypeContainer;
-import org.eclipse.wst.validation.internal.provisional.core.IMessage;
-import org.eclipse.wst.validation.internal.provisional.core.IReporter;
/**
* A JAR file identified by a <code>persistence.xml</code> <code>jar-file</code> element.
@@ -53,12 +50,7 @@ public interface JarFile
int getJavaPersistentTypesSize();
- // ********** validation **********
-
- /**
- * Add to the list of current validation messages
- */
- void validate(List<IMessage> messages, IReporter reporter);
+ // ********** misc **********
/**
* Return true if this jar file exists in the given folder