1 | void setBeanShellReplace(boolean beanshell)↵ | | 1 | void setReverseSearch(boolean reverse)↵
|
2 | {↵ | | 2 | {↵
|
3 | if(beanshell == SearchAndReplace.beanshell)↵ | | 3 | if(reverse == SearchAndReplace.reverse)↵
|
4 | return;↵ | | 4 | return;↵
|
|
5 | SearchAndReplace.beanshell = beanshell;↵ | | 5 | SearchAndReplace.reverse = reverse;↵
|
|
6 | EditBus.send(new SearchSettingsChanged(null));↵ | | 6 | EditBus.send(new SearchSettingsChanged(null));↵
|
7 | } //}}}↵ | | 7 | } //}}}↵
|
|
8 | //{{{ getBeanShellReplace() method↵ | | 8 | //{{{ getReverseSearch() method↵
|
9 | /**↵ | | 9 | /**↵
|
10 | * Returns the state of the BeanShell replace flag.↵ | | 10 | * Returns the state of the reverse search flag.↵
|
11 | * @return True if the replace string is a BeanShell expression↵ | | 11 | * @return True if ↵
|
12 | * @since jEdit 3.2pre2↵ | | 12 | searches should go backwards,↵
|
| | | 13 | * false otherwise↵
|
13 | */↵ | | 14 | */↵
|
14 | public static boolean getBeanShellReplace()↵ | | 15 | public static boolean getReverseSearch()↵
|
15 | {↵ | | 16 | {↵
|
16 | return beanshell;↵ | | 17 | return reverse;↵
|
17 | } //}}}↵ | | 18 | } //}}}↵
|
|
18 | //{{{ setAutoWrap() method↵ | | 19 | //{{{ setBeanShellReplace() method↵
|
19 | /**↵ | | 20 | /**↵
|
20 | * Sets the state of the auto wrap around flag.↵ | | 21 | * Sets the state of the BeanShell replace flag.↵
|
21 | * @param wrap If true, the 'continue search from start' dialog↵ | | 22 | * @param ↵
|
22 | * will not be displayed↵ | | 23 | beanshell True if the replace string is a BeanShell expression↵
|
23 | * @since jEdit 3.2pre2↵ | | 24 | * @since jEdit 3.2pre2↵
|
24 | */↵ | | 25 | */↵
|
25 | public static void setAutoWrapAround(boolean wrap)↵ | | 26 | public static void setBeanShellReplace(boolean beanshell)↵
|
26 | {↵ | | 27 | {↵
|
27 | if(wrap == SearchAndReplace.wrap)↵ | | 28 | if(beanshell == SearchAndReplace.beanshell)↵
|
28 | return;↵ | | 29 | return;↵
|
|
29 | SearchAndReplace.wrap = wrap;↵ | | 30 | SearchAndReplace.beanshell = beanshell;↵
|
|
30 | EditBus.send(new SearchSettingsChanged(null));↵ | | 31 | EditBus.send(new SearchSettingsChanged(null));↵
|
31 | } | | 32 | }
|