Changeset 135 for trunk/src/org/expeditee/actions
- Timestamp:
- 07/10/08 15:59:39 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Simple.java
r133 r135 16 16 import java.util.regex.Pattern; 17 17 18 import org.expeditee.agents.Agent; 18 19 import org.expeditee.agents.DefaultAgent; 19 20 import org.expeditee.agents.DisplayTree; … … 121 122 122 123 private static boolean _stop; 124 125 private static Agent _agent = null; 123 126 124 127 private static boolean _step; … … 860 863 SearchAgent searchAgent = new SearchFrameset(); 861 864 searchAgent.initialise(frameset, resultsFrameset, replacementString, pattern); 865 _agent = searchAgent; 862 866 searchAgent.run(); 867 _agent = null; 863 868 864 869 if (tokens.length > 6) { … … 892 897 tokens[2]); 893 898 SearchAgent searchAgent = new SearchTree(); 899 _agent = searchAgent; 894 900 searchAgent.initialise(topFrameName, resultsFrameset, replacementString, pattern); 895 901 searchAgent.run(); 902 _agent = null; 896 903 if (tokens.length > 6) { 897 904 context.getPrimitives().setValue(tokens[6], … … 2138 2145 WriteTree wt = new WriteTree(format, fileName); 2139 2146 if (wt.initialise(source, null)) { 2147 _agent = wt; 2140 2148 wt.run(); 2149 _agent = null; 2141 2150 } 2142 2151 } else if (tokens[0].equals("concatstr")) { … … 2670 2679 public static void stop() { 2671 2680 _stop = true; 2681 if(_agent != null){ 2682 _agent.stop(); 2683 } 2672 2684 } 2673 2685
Note:
See TracChangeset
for help on using the changeset viewer.