org.topbraid.strings
Class CompletionManagers
java.lang.Object
org.topbraid.strings.CompletionManagers
public class CompletionManagers
- extends java.lang.Object
A Singleton to conveniently access the registered IStyledTextCompletionManagers.
- Author:
- Holger Knublauch
|
Method Summary |
static java.util.List<java.lang.String> |
getCompletionNames(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Statement statement,
java.lang.String partialString,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
static java.util.Set<com.hp.hpl.jena.rdf.model.Resource> |
getCompletionResources(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Statement statement,
java.lang.String partialString,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
static java.lang.String |
getPartialString(java.lang.String str,
int pos)
Starting at the current caret position and an input string, this method
finds the (partial) current word. |
static int |
getStartIndex(java.lang.String str,
int pos)
Starting at the current caret position and an input string, this method
finds the beginning of the current word. |
static java.util.Iterator<ICompletionManager> |
listManagers()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXTENSION_POINT
public static final java.lang.String EXTENSION_POINT
- See Also:
- Constant Field Values
CompletionManagers
public CompletionManagers()
getPartialString
public static java.lang.String getPartialString(java.lang.String str,
int pos)
- Starting at the current caret position and an input string, this method
finds the (partial) current word. This can be passed to the
#getCompletions
method to find all potential matches.
- Parameters:
str - the current input stringpos - the caret position
- Returns:
- a caret position to the left of pos
getStartIndex
public static int getStartIndex(java.lang.String str,
int pos)
- Starting at the current caret position and an input string, this method
finds the beginning of the current word. This can be used to determine
the x position of the pop-up window below the text widget.
- Parameters:
str - the current input stringpos - the caret position
- Returns:
- a caret position to the left of pos
getCompletionResources
public static java.util.Set<com.hp.hpl.jena.rdf.model.Resource> getCompletionResources(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Statement statement,
java.lang.String partialString,
org.eclipse.core.runtime.IProgressMonitor monitor)
getCompletionNames
public static java.util.List<java.lang.String> getCompletionNames(com.hp.hpl.jena.rdf.model.Model model,
com.hp.hpl.jena.rdf.model.Statement statement,
java.lang.String partialString,
org.eclipse.core.runtime.IProgressMonitor monitor)
listManagers
public static java.util.Iterator<ICompletionManager> listManagers()