Search some contents and update it in Eclipse search view -
i have created eclipse plugin search contents , update in eclipse search view, unable since createcontrol()
of isearchresultpage
called once in life cycle.
i need call every time search result changes can erase previous widgets , update search result using new widgets accordingly.
the createcontents
method ever called once. can in result page use iquerylistener
listen changes queries.
add listener in createcontents
method with:
newsearchui.addquerylistener(querylistener);
you should remove listener in page dispose
method:
newsearchui.removequerylistener(querylistener);
note org.eclipse.search.ui.text.abstracttextsearchviewpage
you, may able extend page rather write own complete isearchresultpage
page.
Comments
Post a Comment