Ignore:
Timestamp:
07/31/08 15:18:29 (16 years ago)
Author:
ra33
Message:

Made a few minor changes...

Also

For interactive widgets the border will not be selected if the user is inside the enclosed area

File:
1 edited

Legend:

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

    r156 r179  
    1515import java.util.jar.JarFile;
    1616import java.util.zip.ZipEntry;
     17
     18import javax.swing.SwingUtilities;
    1719
    1820import org.expeditee.agents.Agent;
     
    460462                        }
    461463
    462                         t.start();
    463 
    464                         // if there is a completion frame, then display it to the user
    465                         if (_Agent.hasResultFrame()) {
    466                                 Frame next = _Agent.getResultFrame();
    467                                 FrameUtils.DisplayFrame(next, true);
     464                        if (_Agent.hasResultString()) {
     465                                // Just run the agent on this thread... dont run it in the
     466                                // background
     467                                t.run();
     468                                String result = _Agent.toString();
     469                                // Attach the result to the cursor
     470                                if (FreeItems.textAttachedToCursor()) {
     471                                        Item resultItem = FreeItems.getItemAttachedToCursor();
     472                                        resultItem.setText(result);
     473                                }
     474                                // if there is a completion frame, then display it to the user
     475                        } else {
     476                                t.start();
     477                                if (_Agent.hasResultFrame()) {
     478                                        // TODO We want to be able to navigate through the frames as
     479                                        // the results are loading
     480
     481                                        Frame next = _Agent.getResultFrame();
     482                                        FrameUtils.DisplayFrame(next, true);
     483                                }
    468484                        }
    469485
Note: See TracChangeset for help on using the changeset viewer.