Ignore:
Timestamp:
08/29/12 09:48:10 (12 years ago)
Author:
pharms
Message:
  • moved variable instantiation to the latest possible point
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-tasktrees/src/main/java/de/ugoe/cs/quest/tasktrees/temporalrelation/DefaultMouseClickReductionRule.java

    r655 r679  
    8080        } 
    8181 
    82         IEventTarget eventTarget = ((IEventTask) mouseButtonDown).getEventTarget(); 
    83  
    8482        if (!(((IEventTask) mouseButtonDown).getEventType() instanceof MouseButtonDown)) { 
    8583            return false; 
    8684        } 
    87  
    88         MouseButtonInteraction.Button button = 
    89             ((MouseButtonDown) ((IEventTask) mouseButtonDown).getEventType()).getButton(); 
    9085 
    9186        // check the second node for validity 
     
    9388            return false; 
    9489        } 
     90 
     91        IEventTarget eventTarget = ((IEventTask) mouseButtonDown).getEventTarget(); 
    9592 
    9693        if (!eventTarget.equals(((IEventTask) mouseButtonUp).getEventTarget())) { 
     
    10198            return false; 
    10299        } 
     100 
     101        MouseButtonInteraction.Button button = 
     102                ((MouseButtonDown) ((IEventTask) mouseButtonDown).getEventType()).getButton(); 
    103103 
    104104        if (!button.equals(((MouseButtonUp) ((IEventTask) mouseButtonUp).getEventType()) 
Note: See TracChangeset for help on using the changeset viewer.