Changeset 1286 for trunk


Ignore:
Timestamp:
04/05/19 12:13:40 (5 years ago)
Author:
bln4
Message:

Fixed bug with running getItemsFromChildFrame, and supposidly other actions, were the actionItem was not being parsed to parameters correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Actions.java

    r1197 r1286  
    10421042               
    10431043                // If the ind'th parameter is a the same class as actionItem then the actionItem is the ind'th argument.
    1044                 if (paramCount > ind && actionItem.getClass().isAssignableFrom(paramTypes[ind])) { objects[ind++] = actionItem; }
    1045                
    1046                 // foo(Frame, Item, Item)
    1047                 // currentFrame, laucher, actionItem
    1048                
    1049                 // foo(Frame, Item, Item, String)
    1050                
    1051                 // foo(Frame, Item)
     1044                //if (paramCount > ind && actionItem.getClass().isAssignableFrom(paramTypes[ind])) {
     1045                if (paramCount > ind && paramTypes[ind].isAssignableFrom(actionItem.getClass())) {
     1046                        objects[ind++] = actionItem;
     1047                }
    10521048               
    10531049                // Parse the remainder of the parameters
Note: See TracChangeset for help on using the changeset viewer.