summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpshi2013-03-26 02:46:37 (EDT)
committerlzhu2013-03-26 02:46:37 (EDT)
commita8904009875e6d519be3c7574f08f897e0564201 (patch)
tree70904f57772fb11ec2c9ebb97ef40f7e26556a5f
parent9f1af7c3b6cb36a1bcca9f1c0613db4512af8678 (diff)
downloadorg.eclipse.datatools.enablement.oda-a8904009875e6d519be3c7574f08f897e0564201.zip
org.eclipse.datatools.enablement.oda-a8904009875e6d519be3c7574f08f897e0564201.tar.gz
org.eclipse.datatools.enablement.oda-a8904009875e6d519be3c7574f08f897e0564201.tar.bz2
Fix 58289 NPE when click 'Browse' for XML source URL as create XMLv201303261446
connection profile data source.
-rw-r--r--plugins/org.eclipse.datatools.enablement.oda.xml.ui/src/org/eclipse/datatools/enablement/oda/xml/ui/control/FileSelectionButton.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.datatools.enablement.oda.xml.ui/src/org/eclipse/datatools/enablement/oda/xml/ui/control/FileSelectionButton.java b/plugins/org.eclipse.datatools.enablement.oda.xml.ui/src/org/eclipse/datatools/enablement/oda/xml/ui/control/FileSelectionButton.java
index f244083..054ad84 100644
--- a/plugins/org.eclipse.datatools.enablement.oda.xml.ui/src/org/eclipse/datatools/enablement/oda/xml/ui/control/FileSelectionButton.java
+++ b/plugins/org.eclipse.datatools.enablement.oda.xml.ui/src/org/eclipse/datatools/enablement/oda/xml/ui/control/FileSelectionButton.java
@@ -71,6 +71,9 @@ public class FileSelectionButton extends MenuButton
}
else if ( e.widget instanceof MenuButton )
{
+ defaultAction = handler != null
+ && handler.getBaseFolder( ) != null ? RELATIVE_PATH
+ : ABSOLUTE_PATH;
handleFileSelection( defaultAction );
}
}