Class BslReferenceSearchResultContentProvider
- java.lang.Object
-
- org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchResultContentProvider
-
- com._1c.g5.v8.dt.bsl.ui.editor.findref.BslReferenceSearchResultContentProvider
-
- All Implemented Interfaces:
IContentProvider
,IStructuredContentProvider
,ITreeContentProvider
,org.eclipse.search.ui.ISearchResultListener
,org.eclipse.xtext.resource.IResourceDescription.Event.Listener
public class BslReferenceSearchResultContentProvider extends org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchResultContentProvider
Special implementation ofReferenceSearchResultContentProvider
forReferenceSearchViewPage
This implementation has special behavior forIReferenceDescription
getting from different implementations ofIReferenceFinderParticipant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BslReferenceSearchResultContentProvider.ResourceDescriptionFinderParticipant
IResourceDescription
wich containsIReferenceFinderParticipant.IReferenceDescriptionFinderParticipant
-
Constructor Summary
Constructors Constructor Description BslReferenceSearchResultContentProvider(org.eclipse.xtext.resource.IResourceDescriptions resourceDescriptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addReference(org.eclipse.xtext.resource.IReferenceDescription referenceDescription, boolean isUpdateViewer)
Creates new nodes in tree viewer byIReferenceDescription
.void
descriptionsChanged(org.eclipse.xtext.resource.IResourceDescription.Event event)
protected List<org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchViewTreeNode>
getRootNodes()
Special method for getting access to the private field "rootNodes" of super class.void
inputChanged(Viewer viewer, Object oldInput, Object newInput)
protected org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchViewTreeNode
resourceNode(IReferenceFinderParticipant.IReferenceDescriptionFinderParticipant referenceDescription, boolean isUpdateViewer)
Creates new resource nodes in tree viewer byIReferenceDescription
.void
searchResultChanged(org.eclipse.search.ui.SearchResultEvent e)
protected void
setRootNodesValue(List<org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchViewTreeNode> value)
Special method for changing value of the private field "rootNodes" of super class.
-
-
-
Method Detail
-
inputChanged
public void inputChanged(Viewer viewer, Object oldInput, Object newInput)
- Specified by:
inputChanged
in interfaceIContentProvider
- Overrides:
inputChanged
in classorg.eclipse.xtext.ui.editor.findrefs.ReferenceSearchResultContentProvider
-
searchResultChanged
public void searchResultChanged(org.eclipse.search.ui.SearchResultEvent e)
- Specified by:
searchResultChanged
in interfaceorg.eclipse.search.ui.ISearchResultListener
- Overrides:
searchResultChanged
in classorg.eclipse.xtext.ui.editor.findrefs.ReferenceSearchResultContentProvider
-
descriptionsChanged
public void descriptionsChanged(org.eclipse.xtext.resource.IResourceDescription.Event event)
- Specified by:
descriptionsChanged
in interfaceorg.eclipse.xtext.resource.IResourceDescription.Event.Listener
- Overrides:
descriptionsChanged
in classorg.eclipse.xtext.ui.editor.findrefs.ReferenceSearchResultContentProvider
-
addReference
protected void addReference(org.eclipse.xtext.resource.IReferenceDescription referenceDescription, boolean isUpdateViewer)
Creates new nodes in tree viewer byIReferenceDescription
.
TODO: this method is copy of private method "addReference" of super class. When its accessibility will be changed we need to rewrite current method.- Parameters:
referenceDescription
- actualIReferenceDescription
for creating node of tree viewerisUpdateViewer
-true
if we need to update tree viewer,false
otherwise
-
resourceNode
protected org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchViewTreeNode resourceNode(IReferenceFinderParticipant.IReferenceDescriptionFinderParticipant referenceDescription, boolean isUpdateViewer)
Creates new resource nodes in tree viewer byIReferenceDescription
.
TODO: this method is copy of private method "resourceNode" of super class. When its accessibility will be changed we need to rewrite current method.- Parameters:
referenceDescription
- actualIReferenceDescription
for creating node of tree viewer, can't benull
isUpdateViewer
-true
if we need to update tree viewer,false
otherwise
-
getRootNodes
protected List<org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchViewTreeNode> getRootNodes()
Special method for getting access to the private field "rootNodes" of super class. TODO: Rewrite method when field "rootNodes" will be accessible from super class api- Returns:
- value of private field "rootNodes" of super class, can be
null
-
setRootNodesValue
protected void setRootNodesValue(List<org.eclipse.xtext.ui.editor.findrefs.ReferenceSearchViewTreeNode> value)
Special method for changing value of the private field "rootNodes" of super class. TODO: Rewrite method when field "rootNodes" will be accessible from super class api- Parameters:
value
- new value for private field "rootNodes" of super class, can benull
-
-