Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTran Le2012-10-18 05:17:31 +0000
committerTran Le2012-10-18 05:17:31 +0000
commitbac51ae4f658a8518205ed5555d045d259ca5de1 (patch)
treed2e437818d1afe9e5c71ce0abedc3d160f35ce66
parent0340c9febeb1c7aef125281a56bd8b56d9364560 (diff)
downloadwebtools.dali-201210180520.tar.gz
webtools.dali-201210180520.tar.xz
webtools.dali-201210180520.zip
278049 - Entities from Tables wizard does not indicate that it will adv201210180520
Serializable interface
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/wizards/gen/DefaultTableGenerationWizardPage.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/wizards/gen/DefaultTableGenerationWizardPage.java b/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/wizards/gen/DefaultTableGenerationWizardPage.java
index 18e8588523..1148e54c16 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/wizards/gen/DefaultTableGenerationWizardPage.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.ui/src/org/eclipse/jpt/jpa/ui/internal/wizards/gen/DefaultTableGenerationWizardPage.java
@@ -35,7 +35,6 @@ import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.jface.window.Window;
import org.eclipse.jpt.common.core.internal.utility.JDTTools;
-import org.eclipse.jpt.common.utility.internal.collection.CollectionTools;
import org.eclipse.jpt.jpa.core.JpaProject;
import org.eclipse.jpt.jpa.gen.internal.ORMGenCustomizer;
import org.eclipse.jpt.jpa.gen.internal.ORMGenTable;
@@ -159,7 +158,12 @@ public class DefaultTableGenerationWizardPage extends NewTypeWizardPage {
}
private boolean interfacesHasSerializable(List<String> interfaces) {
- return CollectionTools.contains(interfaces.iterator(), SERIALIZABLE_INTERFACE);
+ for(String interf: interfaces) {
+ if(interf.equals(SERIALIZABLE_INTERFACE)) {
+ return true;
+ }
+ }
+ return false;
}
//search for the source folder with the given name or return the first
@@ -364,4 +368,3 @@ public class DefaultTableGenerationWizardPage extends NewTypeWizardPage {
return PlatformUI.getWorkbench().getHelpSystem();
}
}
-

Back to the top