[ 
https://issues.apache.org/struts/browse/SHALE-444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41132
 ] 

Hermod Opstvedt commented on SHALE-444:
---------------------------------------

Here are som bug fixes:

AttributesMetadataCellModifier.java

Lines 75-83:
                case 2:
                        stringValue = attribute.getBindingType();
                        choices = metadataComponent.getChoices(property);
                        i = choices.length - 1;
+                       //StringValue can be null
-                       while (!stringValue.equals(choices[i]) && i > 0)
+                       while (stringValue!=null && 
!stringValue.equals(choices[i]) && i > 0)
                                --i;
                        result = new Integer(i);
                        break;

AttributesMetadataComponent.java

Lines 405-413
+        // Current can be null
-        while (current.getExtends() != null) {
+        while (current!=null && current.getExtends() != null) {

            current = (ComponentBean) 
model.getConfig(project).getDisplayElements().get(current.getExtends());
+            // Current can be null
-            if (current.getAttributes() != null) {
+            if (current != null && current.getAttributes() != null) {
                attributes.addAll(current.getAttributes().keySet());
            }

        }


> Eclipse Plugin
> --------------
>
>                 Key: SHALE-444
>                 URL: https://issues.apache.org/struts/browse/SHALE-444
>             Project: Shale
>          Issue Type: New Feature
>          Components: Clay
>         Environment: Any environment supported by Eclipse
>            Reporter: Ryan Wynn
>         Attachments: shale-clay-plugin-src.zip
>
>
> Provide a clay plugin for eclipse.  Create a visual editor targeted towards 
> creating/maintaining clay component metadata.  Support autodetection of clay 
> component definitions in the workspace.  Allow component extension through 
> drag and drop from a component palette.  Provide autocompletion of managed 
> bean names and methods.  Support both visual and text modes.
>   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to