Author: adrianc
Date: Mon May 17 19:26:20 2010
New Revision: 945324
URL:
http://svn.apache.org/viewvc?rev=945324&view=revLog:
Small fixup for my previous commit.
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetFactory.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetFactory.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetFactory.java?rev=945324&r1=945323&r2=945324&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetFactory.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/WidgetFactory.java Mon May 17 19:26:20 2010
@@ -89,16 +89,14 @@ public class WidgetFactory {
try {
// Subclass of ModelScreenWidget and non-abstract
if (ModelScreenWidget.class.isAssignableFrom(clz) && (clz.getModifiers() & Modifier.ABSTRACT) == 0) {
- if (ModelScreenWidget.class.isAssignableFrom(clz)) {
- try {
- Field field = clz.getField("TAG_NAME");
- Object fieldObject = field.get(null);
- if (fieldObject != null) {
- Class<? extends ModelScreenWidget> widgetClass = UtilGenerics.cast(clz);
- registerScreenWidget(fieldObject.toString(), widgetClass);
- }
- } catch (Exception e) {}
- }
+ try {
+ Field field = clz.getField("TAG_NAME");
+ Object fieldObject = field.get(null);
+ if (fieldObject != null) {
+ Class<? extends ModelScreenWidget> widgetClass = UtilGenerics.cast(clz);
+ registerScreenWidget(fieldObject.toString(), widgetClass);
+ }
+ } catch (Exception e) {}
}
} catch (Exception e) {
Debug.logError(e, module);