summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpshi2012-05-09 02:53:12 (EDT)
committer mwu2012-05-09 02:53:12 (EDT)
commit9c51ebbeee695350d351c0331b9c0246f8dbffb7 (patch)
treeb80f48bb367c738291d2a47b7679eb13e83ce5cf
parente8ce6d0ef31fc361047c3f48c4597490826ad5d9 (diff)
downloadorg.eclipse.birt-9c51ebbeee695350d351c0331b9c0246f8dbffb7.zip
org.eclipse.birt-9c51ebbeee695350d351c0331b9c0246f8dbffb7.tar.gz
org.eclipse.birt-9c51ebbeee695350d351c0331b9c0246f8dbffb7.tar.bz2
fix 49695 Improper message pops up when trying to edit Excel Data
Source with absolute path.
-rw-r--r--data/org.eclipse.birt.report.data.oda.excel.ui/src/org/eclipse/birt/report/data/oda/excel/ui/wizards/ExcelDataSourcePageHelper.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/data/org.eclipse.birt.report.data.oda.excel.ui/src/org/eclipse/birt/report/data/oda/excel/ui/wizards/ExcelDataSourcePageHelper.java b/data/org.eclipse.birt.report.data.oda.excel.ui/src/org/eclipse/birt/report/data/oda/excel/ui/wizards/ExcelDataSourcePageHelper.java
index b396971..6165129 100644
--- a/data/org.eclipse.birt.report.data.oda.excel.ui/src/org/eclipse/birt/report/data/oda/excel/ui/wizards/ExcelDataSourcePageHelper.java
+++ b/data/org.eclipse.birt.report.data.oda.excel.ui/src/org/eclipse/birt/report/data/oda/excel/ui/wizards/ExcelDataSourcePageHelper.java
@@ -226,10 +226,12 @@ public class ExcelDataSourcePageHelper {
FileDialog dialog = new FileDialog( folderLocation.getShell( ) );
dialog.setFilterExtensions( fileExtensions );
String folderLocationValue = getFolderLocationString( );
- if ( folderLocationValue != null
- && folderLocationValue.trim( ).length( ) > 0 )
+ File file = new File (folderLocationValue);
+ String folderValue = file.getParent( );
+ if ( folderValue != null
+ && folderValue.trim( ).length( ) > 0 )
{
- dialog.setFilterPath( folderLocationValue );
+ dialog.setFilterPath( folderValue );
}
String selectedLocation = dialog.open( );