Node n = yoshikoder.getSelectedNode();
YKDocument doc = yoshikoder.getSelectedDocument();
if (n == null || doc == null)
return;
TokenList toclist = null;
try {
TokenizationCache tcache = yoshikoder.getTokenizationCache();
toclist = tcache.getTokenList(doc);
if (toclist == null){
TokenList tl =
TokenizationService.getTokenizationService().tokenize(doc);
tcache.putTokenList(doc, tl);
toclist = tl;
}
Set<Token> matches = yoshikoder.getDictionary().getMatchingTokens(toclist, n);