summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormianrui2013-01-17 05:25:06 (EST)
committermwu2013-01-17 05:25:06 (EST)
commit3cfe577bd59192bd885c88a970e91751024e8a27 (patch)
treebd64824a7c78d08c713d6a53e974b3a71fdffc44
parent1f22c0998f627bb551948955e84434b082a9ba8f (diff)
downloadorg.eclipse.datatools.enablement.oda-3cfe577bd59192bd885c88a970e91751024e8a27.zip
org.eclipse.datatools.enablement.oda-3cfe577bd59192bd885c88a970e91751024e8a27.tar.gz
org.eclipse.datatools.enablement.oda-3cfe577bd59192bd885c88a970e91751024e8a27.tar.bz2
'Finish' button is enabled when check 'Select home folder' again withv201301171825
invalid path during creating Flat File Data Source.(T56048)
-rw-r--r--plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FolderSelectionPageHelper.java28
1 files changed, 8 insertions, 20 deletions
diff --git a/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FolderSelectionPageHelper.java b/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FolderSelectionPageHelper.java
index c58b2c2..d3a14bf 100644
--- a/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FolderSelectionPageHelper.java
+++ b/plugins/org.eclipse.datatools.connectivity.oda.flatfile.ui/src/org/eclipse/datatools/connectivity/oda/flatfile/ui/wizards/FolderSelectionPageHelper.java
@@ -423,11 +423,8 @@ public class FolderSelectionPageHelper
public void widgetSelected( SelectionEvent e )
{
switchFileSelectionMode( true );
- if ( getFolderLocationString( ).trim( ).length( ) > 0 )
- {
- verifyFileLocation( );
- }
- else
+ verifyFileLocation( );
+ if ( !( getFolderLocationString( ).trim( ).length( ) > 0 ) )
{
setMessage( DEFAULT_MESSAGE, IMessageProvider.NONE );
}
@@ -449,11 +446,8 @@ public class FolderSelectionPageHelper
public void modifyText( ModifyEvent e )
{
- if ( getFolderLocationString( ).trim( ).length( ) > 0 )
- {
- verifyFileLocation( );
- }
- else
+ verifyFileLocation( );
+ if ( !( getFolderLocationString( ).trim( ).length( ) > 0 ) )
{
setMessage( DEFAULT_MESSAGE, IMessageProvider.NONE );
}
@@ -498,11 +492,8 @@ public class FolderSelectionPageHelper
public void widgetSelected( SelectionEvent e )
{
switchFileSelectionMode( false );
- if ( getFileURIString( ).trim( ).length( ) > 0 )
- {
- verifyFileURILocation( );
- }
- else
+ verifyFileURILocation( );
+ if ( !( getFileURIString( ).trim( ).length( ) > 0 ) )
{
setMessage( DEFAULT_MESSAGE, IMessageProvider.NONE );
}
@@ -525,11 +516,8 @@ public class FolderSelectionPageHelper
public void modifyText( ModifyEvent e )
{
- if ( getFileURIString( ).trim( ).length( ) > 0 )
- {
- verifyFileURILocation( );
- }
- else
+ verifyFileURILocation( );
+ if ( !( getFileURIString( ).trim( ).length( ) > 0 ) )
{
setMessage( DEFAULT_MESSAGE, IMessageProvider.NONE );
}