summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxwu2012-09-20 04:56:39 (EDT)
committerlzhu2012-09-20 04:56:39 (EDT)
commit07081e7b6bc0551e24f790b575db6059d7dfa108 (patch)
treea98fc8d5ed4d6464a200afc4401d251cd5623e5b
parent043ed57724c994407ed01b560a3f71a9528c171d (diff)
downloadorg.eclipse.datatools.enablement.oda-07081e7b6bc0551e24f790b575db6059d7dfa108.zip
org.eclipse.datatools.enablement.oda-07081e7b6bc0551e24f790b575db6059d7dfa108.tar.gz
org.eclipse.datatools.enablement.oda-07081e7b6bc0551e24f790b575db6059d7dfa108.tar.bz2
CheckIn: Fix a bug [OS][421]Automatically switch to next line doesn't
work on left side for Adding dataset columns in flat dataset dlg.[53337]
-rw-r--r--plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FileSelectionWizardPage.java15
1 files changed, 15 insertions, 0 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 9cddf9a..bfc7c09 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
@@ -954,6 +954,20 @@ public class FileSelectionWizardPage extends DataSetWizardPage
}
}
+ private void updateSelectionFocus( )
+ {
+ int[] indices = availableList.getSelectionIndices( );
+ if ( indices.length > 0 )
+ {
+ int nextIndex = indices[indices.length - 1] + 1;
+ if ( availableList.getItemCount( ) > nextIndex )
+ {
+ availableList.deselectAll( );
+ availableList.select( nextIndex );
+ }
+ }
+ }
+
private void validateSelectedColumns( )
{
boolean pageComplete = true;
@@ -1749,6 +1763,7 @@ public class FileSelectionWizardPage extends DataSetWizardPage
selectedColumnsViewer.getTable( ).setSelection( -1 );
+ updateSelectionFocus( );
updateButtons( );
setMessage( DEFAULT_MESSAGE );