summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxwu2012-01-10 01:37:58 (EST)
committer lzhu2012-01-10 01:37:58 (EST)
commitdcf1d47cfa750d360fa7f3ae9eea177046aef961 (patch)
tree2ab7837c666b14912d38a0867d2f6f60ce035325
parent6dffb57712dd1e767cf6afbbcd9d3cfc6b6c02ba (diff)
downloadorg.eclipse.datatools.enablement.oda-dcf1d47cfa750d360fa7f3ae9eea177046aef961.zip
org.eclipse.datatools.enablement.oda-dcf1d47cfa750d360fa7f3ae9eea177046aef961.tar.gz
org.eclipse.datatools.enablement.oda-dcf1d47cfa750d360fa7f3ae9eea177046aef961.tar.bz2
CheckIN: Fix an issue-Selected column doesn't exist error when delete
dup column from flat file[46004].
-rw-r--r--plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FileSelectionWizardPage.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FileSelectionWizardPage.java b/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FileSelectionWizardPage.java
index f448749..bfab24f 100644
--- a/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FileSelectionWizardPage.java
+++ b/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FileSelectionWizardPage.java
@@ -1013,10 +1013,12 @@ public class FileSelectionWizardPage extends DataSetWizardPage
for ( int i = 0; i < savedSelectedColumnsInfoList.size( ); i++ )
{
String columnName = ( (String[]) savedSelectedColumnsInfoList.get( i ) )[0];
+ String originalName = ( (String[]) savedSelectedColumnsInfoList.get( i ) )[1];
boolean columnExists = false;
for ( int k = 0; k < columnNames.length; k++ )
{
- if ( columnName != null && columnName.equals( columnNames[k] ) )
+ if ( ( columnName != null && columnName.equals( columnNames[k] ) )
+ || ( originalName != null && originalName.equals( columnNames[k] ) ) )
{
columnExists = true;
break;