Changeset 179 for trunk/src/org/expeditee/actions/Actions.java
- Timestamp:
- 07/31/08 15:18:29 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Actions.java
r156 r179 15 15 import java.util.jar.JarFile; 16 16 import java.util.zip.ZipEntry; 17 18 import javax.swing.SwingUtilities; 17 19 18 20 import org.expeditee.agents.Agent; … … 460 462 } 461 463 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 } 468 484 } 469 485
Note:
See TracChangeset
for help on using the changeset viewer.