Class ClassNameExtractor
java.lang.Object
org.eclipse.mat.ui.snapshot.panes.oql.contentAssist.ClassNameExtractor
- All Implemented Interfaces:
ContextExtractor
Context extractor to be used in the FROM clause of a query. If last character
is not a space gets back up to the first space.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPrefix
(ITextViewer source, int currentPosition) If the last character is a space it returns an empty String If not it returns the last substring up to a space
-
Constructor Details
-
ClassNameExtractor
public ClassNameExtractor()
-
-
Method Details
-
getPrefix
If the last character is a space it returns an empty String If not it returns the last substring up to a space- Specified by:
getPrefix
in interfaceContextExtractor
- Returns:
- what has been typed before the current position and should be used to filter the content assistance.
-