Author: remi
Date: 2009-03-31 10:01:25 +0200 (Tue, 31 Mar 2009)
New Revision: 4272

Modified:
   
software_suite_v2/software/development_tools/tuxdroid-gadget-java-kit/branches/0.0.2/tuxdroid-gadget-java-kit/sources/com/kysoh/tuxdroid/gadget/framework/gadget/SimpleGadget.java
Log:
* avoiding of the rigidity of the parameter values assignation.

Modified: 
software_suite_v2/software/development_tools/tuxdroid-gadget-java-kit/branches/0.0.2/tuxdroid-gadget-java-kit/sources/com/kysoh/tuxdroid/gadget/framework/gadget/SimpleGadget.java
===================================================================
--- 
software_suite_v2/software/development_tools/tuxdroid-gadget-java-kit/branches/0.0.2/tuxdroid-gadget-java-kit/sources/com/kysoh/tuxdroid/gadget/framework/gadget/SimpleGadget.java
  2009-03-31 07:46:56 UTC (rev 4271)
+++ 
software_suite_v2/software/development_tools/tuxdroid-gadget-java-kit/branches/0.0.2/tuxdroid-gadget-java-kit/sources/com/kysoh/tuxdroid/gadget/framework/gadget/SimpleGadget.java
  2009-03-31 08:01:25 UTC (rev 4272)
@@ -100,7 +100,7 @@
                                        class1 = class1.getSuperclass();
                                }
                                if (field == null) {
-                                       throw new SimpleGadgetException("Unable 
to find '" + key + "' field.");
+                                       continue;
                                }
                                field.setAccessible(true);
                                try {
@@ -116,10 +116,12 @@
                                                Enum newValue = 
Enum.valueOf((Class<Enum>) field.getType(), stringValue);
                                                field.set(configuration, 
newValue);
                                        } else {
-                                               throw new 
SimpleGadgetException("Unable to find conversion for : " + field.getType());
+                                               this.throwError(new 
SimpleGadgetException("Unable to find conversion for : " + field.getType()));
+                                               continue;
                                        }
                                } catch (Exception e) {
-                                       throw new SimpleGadgetException(e);
+                                       this.throwError(e);
+                                       continue;
                                }
                        }
                }


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to