Author: hibou
Date: Thu Dec 4 11:40:06 2008
New Revision: 723407
URL: http://svn.apache.org/viewvc?rev=723407&view=rev
Log:
IVYDE-136: fix the use of the Eclipse preference API
Modified:
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/preferences/IvyDEPreferenceStoreHelper.java
Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt?rev=723407&r1=723406&r2=723407&view=diff
==============================================================================
--- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt (original)
+++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/CHANGES.txt Thu Dec 4
11:40:06 2008
@@ -1,6 +1,10 @@
IvyDE
============================================
+ version 2.0.0 final
+==========================
+- FIX: When migrating from ivyde alpha to ivyde beta eclipse is throwing NPE
at startup (IVYDE-136) (thanks to Daniel Becheanu)
+
version 2.0.0 beta1
==========================
- NEW: settings files code completion support (IVYDE-22)
Modified:
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/preferences/IvyDEPreferenceStoreHelper.java
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/preferences/IvyDEPreferenceStoreHelper.java?rev=723407&r1=723406&r2=723407&view=diff
==============================================================================
---
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/preferences/IvyDEPreferenceStoreHelper.java
(original)
+++
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/preferences/IvyDEPreferenceStoreHelper.java
Thu Dec 4 11:40:06 2008
@@ -77,7 +77,7 @@
if (b) {
// not the default value, so it has been set
// erase the deprecated preference and store the new one
- prefStore.setValue(PreferenceConstants.DO_RETRIEVE_DEPRECATED,
null);
+ prefStore.setValue(PreferenceConstants.DO_RETRIEVE_DEPRECATED, "");
prefStore.setValue(PreferenceConstants.DO_RETRIEVE, b);
}
@@ -88,7 +88,7 @@
if (s != null && s.length() != 0) {
// not the default value, so it has been set
// erase the deprecated preference and store the new one
-
prefStore.setValue(PreferenceConstants.RETRIEVE_PATTERN_DEPRECATED, null);
+
prefStore.setValue(PreferenceConstants.RETRIEVE_PATTERN_DEPRECATED, "");
prefStore.setValue(PreferenceConstants.RETRIEVE_PATTERN, s);
}