diff options
author | Tran Le | 2012-10-18 05:17:31 +0000 |
---|---|---|
committer | Tran Le | 2012-10-18 05:17:31 +0000 |
commit | bac51ae4f658a8518205ed5555d045d259ca5de1 (patch) | |
tree | d2e437818d1afe9e5c71ce0abedc3d160f35ce66 | |
parent | 0340c9febeb1c7aef125281a56bd8b56d9364560 (diff) | |
download | webtools.dali-bac51ae4f658a8518205ed5555d045d259ca5de1.tar.gz webtools.dali-bac51ae4f658a8518205ed5555d045d259ca5de1.tar.xz webtools.dali-bac51ae4f658a8518205ed5555d045d259ca5de1.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.java | 9 |
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(); } } - |