[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [recommenders-dev] [SnipMatch] How to insert selection MatchNode into current editor
|
That seems to be the code from the DisposeListener of the SearchBox, and as far as I know, there aren't any other requirements.
Are you doing a rewrite, or are you refactoring little by little? I don't know what you've changed.
On 28 March 2012 22:56, Chen Cheng
<chengchendoc@xxxxxxxxx> wrote:
Hi Doug & Zi,
We can just use these code to insert code snip of MatchNode instance into current editor, right ?
try {
env.reset();
((JavaSnippetMatchEnvironment) env).applyMatch(matches.get(0), false, 300);
} catch (Exception e) {
e.printStackTrace();
}
Is there any prerequisite? I am refactoring search result display module for SnipMatch, and should use this method to insert current selection MatchNode into editor, but it seems does not work for me, i am reading and trying to find out the issue. But I think may be you guys can give me a hand
--
Best Regards From Cheng Chen [chengchendoc@xxxxxxxxx]
_______________________________________________
recommenders-dev mailing list
recommenders-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/recommenders-dev