org.xwiki.editor.tool.autocomplete
Interface TargetContentLocator
@Role
public interface TargetContentLocator
Allows discovering the syntax of the content under the current cursor position.
- Version:
- $Id$
locate
TargetContent locate(String content,
String syntaxId,
int currentPosition)
- Parameters:
content - the whole content from which we need to extract the content and type at the cursor position
(eg the whole content could be written in wiki syntax and the content at the cursor position
could be Velocity content)syntaxId - the syntax in which the whole content is written in (eg "xwiki/2.0")currentPosition - the position of the cursor
- Returns:
- the content and type at the cursor position
Copyright © 2004-2013 XWiki. All Rights Reserved.