Class PhpCompletionProvider
java.lang.Object
org.fife.ui.autocomplete.CompletionProviderBase
org.fife.ui.autocomplete.AbstractCompletionProvider
org.fife.ui.autocomplete.DefaultCompletionProvider
org.fife.rsta.ac.html.HtmlCompletionProvider
org.fife.rsta.ac.php.PhpCompletionProvider
- All Implemented Interfaces:
org.fife.ui.autocomplete.CompletionProvider
Completion provider for PHP.
- Version:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.fife.ui.autocomplete.AbstractCompletionProvider
org.fife.ui.autocomplete.AbstractCompletionProvider.CaseInsensitiveComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate booleanWhethergetAlreadyEnteredText(JTextComponent)determined the caret to be in a location where PHP completions were required (as opposed to HTML completions).private List<org.fife.ui.autocomplete.Completion> PHP function completions.Fields inherited from class org.fife.ui.autocomplete.DefaultCompletionProvider
segFields inherited from class org.fife.ui.autocomplete.AbstractCompletionProvider
comparator, completionsFields inherited from class org.fife.ui.autocomplete.CompletionProviderBase
EMPTY_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<org.fife.ui.autocomplete.Completion> private booleaninPhpBlock(JTextComponent comp) Returns whether the caret is inside a PHP block in this text component.booleanOverridden to properly handle both HTML markup and PHP code.voidLoads completions from an XML input stream.Methods inherited from class HtmlCompletionProvider
defaultGetAlreadyEnteredText, getAttributeCompletionsForTag, getTagCompletions, initCompletions, isAutoActivateOkayOutsideOfMarkupMethods inherited from class org.fife.ui.autocomplete.DefaultCompletionProvider
getCompletionsAt, getParameterizedCompletions, init, isValidChar, loadFromXML, loadFromXML, loadFromXML, loadFromXMLMethods inherited from class org.fife.ui.autocomplete.AbstractCompletionProvider
addCompletion, addCompletions, addWordCompletions, checkProviderAndAdd, clear, getCompletionByInputText, removeCompletionMethods inherited from class org.fife.ui.autocomplete.CompletionProviderBase
clearParameterizedCompletionParams, getCompletions, getListCellRenderer, getParameterChoicesProvider, getParameterListEnd, getParameterListSeparator, getParameterListStart, getParent, setAutoActivationRules, setListCellRenderer, setParameterChoicesProvider, setParameterizedCompletionParams, setParent
-
Field Details
-
phpCompletion
private boolean phpCompletionWhethergetAlreadyEnteredText(JTextComponent)determined the caret to be in a location where PHP completions were required (as opposed to HTML completions). -
phpCompletions
PHP function completions. -
EVERYTHING_HERE_AND_BELOW_IS_PHP
private static final int EVERYTHING_HERE_AND_BELOW_IS_PHP- See Also:
-
-
Constructor Details
-
PhpCompletionProvider
public PhpCompletionProvider()
-
-
Method Details
-
loadPhpCompletionsFromXML
Loads completions from an XML input stream. The XML should validate against the completion DTD found in the AutoComplete library.- Parameters:
in- The input stream to read from.- Throws:
IOException- If an IO error occurs.
-
getAlreadyEnteredText
- Specified by:
getAlreadyEnteredTextin interfaceorg.fife.ui.autocomplete.CompletionProvider- Overrides:
getAlreadyEnteredTextin classHtmlCompletionProvider
-
getCompletionsImpl
- Overrides:
getCompletionsImplin classHtmlCompletionProvider
-
inPhpBlock
Returns whether the caret is inside a PHP block in this text component.- Parameters:
comp- TheRSyntaxTextAera.- Returns:
- Whether the caret is inside a PHP block.
-
isAutoActivateOkay
Overridden to properly handle both HTML markup and PHP code.- Specified by:
isAutoActivateOkayin interfaceorg.fife.ui.autocomplete.CompletionProvider- Overrides:
isAutoActivateOkayin classHtmlCompletionProvider- See Also:
-