Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[recommenders-dev] [SnipMatch] How to insert selection MatchNode into current editor

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]

Back to the top