本文整理汇总了Java中org.eclipse.search.ui.NewSearchUI.removeQueryListener方法的典型用法代码示例。如果您正苦于以下问题:Java NewSearchUI.removeQueryListener方法的具体用法?Java NewSearchUI.removeQueryListener怎么用?Java NewSearchUI.removeQueryListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.search.ui.NewSearchUI
的用法示例。
在下文中一共展示了NewSearchUI.removeQueryListener方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: partClosed
import org.eclipse.search.ui.NewSearchUI; //导入方法依赖的package包/类
public void partClosed(IWorkbenchPartReference partRef)
{
if (partRef instanceof IEditorReference)
{
IEditorPart part = (IEditorPart) partRef.getPart(false);
if (part instanceof MultiPageEditorPart)
{
MultiPageEditorPart multi = (MultiPageEditorPart) part;
if (pageListener != null)
{
multi.getSite().getSelectionProvider().removeSelectionChangedListener(pageListener);
}
}
}
// If it's a search view, remove any query listeners for it!
else if (partRef instanceof IViewReference)
{
IViewPart view = (IViewPart) partRef.getPart(false);
if (queryListeners.containsKey(view))
{
NewSearchUI.removeQueryListener(queryListeners.remove(view));
}
}
}
示例2: deactivate
import org.eclipse.search.ui.NewSearchUI; //导入方法依赖的package包/类
@Override
public void deactivate()
{
final IExecutionModel model = executionModel();
if (model != null)
{
model.traceView().unregister(this);
}
DebugPlugin.getDefault().removeDebugEventListener(this);
final IPreferenceStore store = PreferencesPlugin.getDefault().getPreferenceStore();
store.removePropertyChangeListener(this);
final IStepManager stepManager = JiveUIPlugin.getDefault().stepManager();
stepManager.removeStepListener(this);
final IThreadColorManager threadColorManager = JiveUIPlugin.getDefault()
.getThreadColorManager();
threadColorManager.removeThreadColorListener(this);
NewSearchUI.removeQueryListener(this);
updateJob.cancel();
setSelected(EditPart.SELECTED_NONE);
super.deactivate();
}
示例3: queryRemoved
import org.eclipse.search.ui.NewSearchUI; //导入方法依赖的package包/类
@Override
public void queryRemoved(ISearchQuery query) {
if (fResult.equals(query.getSearchResult())) {
ResourcesPlugin.getWorkspace().removeResourceChangeListener(this);
NewSearchUI.removeQueryListener(this);
}
}
示例4: dispose
import org.eclipse.search.ui.NewSearchUI; //导入方法依赖的package包/类
@Override
public void dispose() {
NewSearchUI.removeQueryListener(queryListener);
super.dispose();
}
示例5: dispose
import org.eclipse.search.ui.NewSearchUI; //导入方法依赖的package包/类
@Override
public void dispose() {
NewSearchUI.removeQueryListener(queryListener);
super.dispose();
}
示例6: queryRemoved
import org.eclipse.search.ui.NewSearchUI; //导入方法依赖的package包/类
public void queryRemoved(ISearchQuery query) {
if (fResult.equals(query.getSearchResult())) {
JavaCore.removeElementChangedListener(this);
NewSearchUI.removeQueryListener(this);
}
}