Changeset 291
- Timestamp:
- 09/03/08 14:36:05 (16 years ago)
- Location:
- trunk/src/org/expeditee
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/actions/Simple.java
r235 r291 933 933 // The fast search does not do replacement 934 934 if (bReplace) { 935 searchAgent = new SearchFrameset( firstFrame, maxFrame);935 searchAgent = new SearchFrameset(null, firstFrame, maxFrame); 936 936 } else { 937 searchAgent = new SearchFramesetFast( firstFrame, maxFrame);937 searchAgent = new SearchFramesetFast(null, firstFrame, maxFrame); 938 938 } 939 939 searchAgent.initialise(null, null, frameset, resultsFrameset, … … 976 976 // now The fast search does not do replacement 977 977 if (bReplace) { 978 searchAgent = new SearchTree( );978 searchAgent = new SearchTree(null); 979 979 } else { 980 searchAgent = new SearchTreeFast( );980 searchAgent = new SearchTreeFast(null); 981 981 } 982 982 _agent = searchAgent; -
trunk/src/org/expeditee/agents/SearchAgent.java
r176 r291 21 21 protected String _startName; 22 22 23 public SearchAgent(String searchText) { 24 _pattern = searchText; 25 } 26 23 27 @Override 24 28 public boolean initialise(Frame frame, Item item) { -
trunk/src/org/expeditee/agents/SearchFrameset.java
r162 r291 8 8 private long _maxFrame = Integer.MAX_VALUE; 9 9 10 public SearchFrameset(long firstFrame, long maxFrame) { 10 public SearchFrameset(String searchText) { 11 super(searchText); 12 } 13 14 public SearchFrameset(String searchText, long firstFrame, long maxFrame) { 15 this(searchText); 11 16 _firstFrame = firstFrame; 12 17 _maxFrame = maxFrame; 13 }14 15 public SearchFrameset() {16 super();17 18 } 18 19 -
trunk/src/org/expeditee/agents/SearchFramesetFast.java
r176 r291 12 12 private long _maxFrame = Integer.MAX_VALUE; 13 13 14 public SearchFramesetFast(long firstFrame, long maxFrame) { 14 public SearchFramesetFast(String searchText) { 15 super(searchText); 16 } 17 18 public SearchFramesetFast(String searchText, long firstFrame, long maxFrame) { 19 this(searchText); 15 20 _firstFrame = firstFrame; 16 21 _maxFrame = maxFrame; 17 }18 19 public SearchFramesetFast() {20 super();21 22 } 22 23 -
trunk/src/org/expeditee/agents/SearchFramesetNoResults.java
r179 r291 13 13 private Map<String, Collection<String>> _results = new HashMap<String, Collection<String>>(); 14 14 15 public SearchFramesetNoResults(long firstFrame, long maxFrame) { 15 public SearchFramesetNoResults(String searchText) { 16 super(searchText); 17 } 18 19 public SearchFramesetNoResults(String searchText, long firstFrame, long maxFrame) { 20 this(searchText); 16 21 _firstFrame = firstFrame; 17 22 _maxFrame = maxFrame; 18 }19 20 public SearchFramesetNoResults() {21 super();22 23 } 23 24 -
trunk/src/org/expeditee/agents/SearchTree.java
r156 r291 10 10 11 11 public class SearchTree extends SearchAgent { 12 public SearchTree(String searchText) { 13 super(searchText); 14 } 15 12 16 @Override 13 17 protected Frame process(Frame frame) { -
trunk/src/org/expeditee/agents/SearchTreeFast.java
r176 r291 20 20 private Map<String, Collection<String>> _searchResults = new HashMap<String, Collection<String>>(); 21 21 22 public SearchTreeFast(String searchText) { 23 super(searchText); 24 } 25 22 26 @Override 23 27 protected Frame process(Frame frame) { -
trunk/src/org/expeditee/agents/SearchTreeNoResults.java
r176 r291 19 19 private Map<String, Collection<String>> _results = new HashMap<String, Collection<String>>(); 20 20 21 public SearchTreeNoResults(String searchText) { 22 super(searchText); 23 } 24 21 25 @Override 22 26 protected Frame process(Frame frame) { -
trunk/src/org/expeditee/items/Item.java
r289 r291 748 748 } 749 749 750 public voidcalculate(String formula) {750 public boolean calculate(String formula) { 751 751 setFormula(formula); 752 return true; 752 753 } 753 754 -
trunk/src/org/expeditee/items/Text.java
r290 r291 1867 1867 1868 1868 @Override 1869 public voidcalculate(String formula) {1869 public boolean calculate(String formula) { 1870 1870 if (FrameGraphics.isXRayMode()) 1871 return ;1871 return false; 1872 1872 1873 1873 super.calculate(formula); 1874 1874 if (isFloating() || formula == null || formula.length() == 0) { 1875 return ;1875 return false; 1876 1876 } 1877 1877 String lowercaseFormula = formula.toLowerCase(); … … 1942 1942 } catch (Throwable e) { 1943 1943 this.setText(getFormula()); 1944 // this.setFormula(null); 1945 } 1944 return false; 1945 } 1946 return true; 1946 1947 } 1947 1948
Note:
See TracChangeset
for help on using the changeset viewer.