Ignore:
Timestamp:
07/10/08 15:50:20 (16 years ago)
Author:
ra33
Message:

Turned search actions into search agents so they are run on a different thread

File:
1 edited

Legend:

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

    r121 r133  
    325325                // if this is not the name of a method, it may be the name of an agent
    326326                if (toRun == null) {
    327                         LaunchAgent(mname, command, source);
     327                        LaunchAgent(mname, command, source, launcher);
    328328                        return;
    329329                }
     
    382382         *            The starting Frame that the JAG is being launched on
    383383         */
    384         private static void LaunchAgent(String name, String parameters, Frame source) {
     384        private static void LaunchAgent(String name, String parameters, Frame source, Item clicked) {
    385385                // Use the correct case version for printing error messages
    386386                String nameWithCorrectCase = name;
     
    444444
    445445                        // check for errors during initialisation
    446                         if (!_Agent.initialise(source)) {
     446                        if (!_Agent.initialise(source, clicked)) {
    447447                                MessageBay.errorMessage("Error initialising agent: "
    448448                                                + nameWithCorrectCase);
    449449                                return;
    450450                        }
    451 
    452                         _Agent.setStartFrame(source);
    453451
    454452                        t.start();
Note: See TracChangeset for help on using the changeset viewer.