本文整理汇总了Java中org.eclipse.search.ui.ISearchResultListener类的典型用法代码示例。如果您正苦于以下问题:Java ISearchResultListener类的具体用法?Java ISearchResultListener怎么用?Java ISearchResultListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISearchResultListener类属于org.eclipse.search.ui包,在下文中一共展示了ISearchResultListener类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: fireEvent
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
void fireEvent(SearchResultEvent searchResultEvent) {
synchronized (listeners) {
for (ISearchResultListener listener : listeners) {
listener.searchResultChanged(searchResultEvent);
}
}
}
示例2: fireChange
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
/**
* Send the given <code>SearchResultEvent</code> to all registered search result listeners.
*
* @param e the event to be sent
* @see ISearchResultListener
*/
protected void fireChange(SearchResultEvent e) {
HashSet copiedListeners = new HashSet();
synchronized (fListeners) {
copiedListeners.addAll(fListeners);
}
Iterator listeners = copiedListeners.iterator();
while (listeners.hasNext()) {
((ISearchResultListener) listeners.next()).searchResultChanged(e);
}
}
示例3: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void addListener(ISearchResultListener l) {
if (fListeners.size()>0) fListeners.clear();
fListeners.add(l);
}
示例4: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void removeListener(ISearchResultListener l) {
fListeners.remove(l);
}
示例5: notifyListeners
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
private void notifyListeners(IFile file) {
SearchResultEvent event = new ModelSearchResultEvent(this, file);
for (Object listener : fListeners.getListeners())
((ISearchResultListener) listener).searchResultChanged(event);
}
示例6: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
/**
* @see org.eclipse.search.ui.text.AbstractTextSearchResult#addListener(org.eclipse.search.ui.ISearchResultListener)
*/
@Override
public void addListener(ISearchResultListener listener) {
super.addListener(listener);
}
示例7: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
/**
* @see org.eclipse.search.ui.text.AbstractTextSearchResult#removeListener(org.eclipse.search.ui.ISearchResultListener)
*/
@Override
public void removeListener(ISearchResultListener arg0) {
super.removeListener(arg0);
}
示例8: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
public void addListener(ISearchResultListener l) {
synchronized (listeners) {
listeners.add(l);
}
}
示例9: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
public void removeListener(ISearchResultListener l) {
synchronized (listeners) {
listeners.remove(l);
}
}
示例10: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void addListener(ISearchResultListener l) {
synchronized (listeners) {
listeners.add(l);
}
}
示例11: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void removeListener(ISearchResultListener l) {
synchronized (listeners) {
listeners.remove(l);
}
}
示例12: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
/** {@inheritDoc} */
public void addListener(ISearchResultListener l) {
synchronized (fListeners) {
fListeners.add(l);
}
}
示例13: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
/** {@inheritDoc} */
public void removeListener(ISearchResultListener l) {
synchronized (fListeners) {
fListeners.remove(l);
}
}
示例14: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void addListener(ISearchResultListener l) {
// do nothing
}
示例15: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void removeListener(ISearchResultListener l) {
// do nothing
}