com.intellij.psi.impl.source.xml.TagNameReference Java Examples
The following examples show how to use
com.intellij.psi.impl.source.xml.TagNameReference.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FlowRenameDialog.java From mule-intellij-plugins with Apache License 2.0 | 5 votes |
private void completeVariable(Editor editor) { String prefix = this.myNameSuggestionsField.getEnteredName(); PsiReference reference = this.myTag.getReference(); if(reference instanceof TagNameReference) { LookupElement[] lookupItems = TagNameReferenceCompletionProvider.getTagNameVariants(this.myTag, this.myTag.getNamespacePrefix()); editor.getCaretModel().moveToOffset(prefix.length()); editor.getSelectionModel().removeSelection(); LookupManager.getInstance(this.getProject()).showLookup(editor, lookupItems, prefix); } }
Example #2
Source File: BPMNFileExtension.java From intellij-bpmn-editor with GNU General Public License v3.0 | 4 votes |
public TagNameReference createTagNameReference(final ASTNode nameElement, final boolean startTagFlag) { return new BPMNTagNameReference(nameElement, startTagFlag); }