Package ca.cgjennings.ui.textedit
Class PropertyFileCodeSupport.PropertyNavigator
- java.lang.Object
-
- ca.cgjennings.ui.textedit.RegexNavigatorBase
-
- ca.cgjennings.ui.textedit.PropertyFileCodeSupport.PropertyNavigator
-
- All Implemented Interfaces:
Navigator
- Enclosing class:
- PropertyFileCodeSupport
public static class PropertyFileCodeSupport.PropertyNavigator extends RegexNavigatorBase
ANavigator
implementation for setting and property files.- Since:
- 3.0
- Author:
- Chris Jennings
-
-
Field Summary
-
Fields inherited from class ca.cgjennings.ui.textedit.RegexNavigatorBase
pattern
-
Fields inherited from interface ca.cgjennings.ui.textedit.Navigator
ASYNC_RETRY
-
-
Constructor Summary
Constructors Constructor Description PropertyNavigator()
PropertyNavigator(boolean ignoreColons)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NavigationPoint
createNavigationPoint(java.util.regex.Matcher m, java.lang.String sourceText, boolean initialize)
Called with each match result to create a navigation point based on the match.-
Methods inherited from class ca.cgjennings.ui.textedit.RegexNavigatorBase
dumpRegexThrowable, getNavigationPoints, match
-
-
-
-
Method Detail
-
createNavigationPoint
protected NavigationPoint createNavigationPoint(java.util.regex.Matcher m, java.lang.String sourceText, boolean initialize)
Description copied from class:RegexNavigatorBase
Called with each match result to create a navigation point based on the match. May return null to indicate that no point should be added for the match. The base class returns a simple point based on the text and location of the match.- Overrides:
createNavigationPoint
in classRegexNavigatorBase
- Parameters:
m
- the match informationsourceText
- the source textinitialize
- if true, this is the first match of a new pass- Returns:
- a navigation point for the match, or null
-
-