本文整理汇总了Java中org.eclipse.search.ui.ISearchResultListener类的典型用法代码示例。如果您正苦于以下问题:Java ISearchResultListener类的具体用法?Java ISearchResultListener怎么用?Java ISearchResultListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ISearchResultListener类属于org.eclipse.search.ui包,在下文中一共展示了ISearchResultListener类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: fireEvent
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
void fireEvent(SearchResultEvent searchResultEvent) {
synchronized (listeners) {
for (ISearchResultListener listener : listeners) {
listener.searchResultChanged(searchResultEvent);
}
}
}
开发者ID:cplutte,项目名称:bts,代码行数:8,代码来源:ReferenceSearchResult.java
示例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);
}
}
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:AbstractTextSearchResult.java
示例3: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void addListener(ISearchResultListener l) {
if (fListeners.size()>0) fListeners.clear();
fListeners.add(l);
}
开发者ID:gw4e,项目名称:gw4e.project,代码行数:6,代码来源:ModelSearchResult.java
示例4: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void removeListener(ISearchResultListener l) {
fListeners.remove(l);
}
开发者ID:gw4e,项目名称:gw4e.project,代码行数:5,代码来源:ModelSearchResult.java
示例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);
}
开发者ID:gw4e,项目名称:gw4e.project,代码行数:7,代码来源:ModelSearchResult.java
示例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);
}
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:8,代码来源:UMLInverseReferenceModelSearchResult.java
示例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);
}
开发者ID:SK-HOLDINGS-CC,项目名称:NEXCORE-UML-Modeler,代码行数:9,代码来源:UMLInverseReferenceModelSearchResult.java
示例8: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
public void addListener(ISearchResultListener l) {
synchronized (listeners) {
listeners.add(l);
}
}
开发者ID:cplutte,项目名称:bts,代码行数:6,代码来源:ReferenceSearchResult.java
示例9: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
public void removeListener(ISearchResultListener l) {
synchronized (listeners) {
listeners.remove(l);
}
}
开发者ID:cplutte,项目名称:bts,代码行数:6,代码来源:ReferenceSearchResult.java
示例10: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void addListener(ISearchResultListener l) {
synchronized (listeners) {
listeners.add(l);
}
}
开发者ID:insweat,项目名称:hssd,代码行数:7,代码来源:AbstractSearchResult.java
示例11: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void removeListener(ISearchResultListener l) {
synchronized (listeners) {
listeners.remove(l);
}
}
开发者ID:insweat,项目名称:hssd,代码行数:7,代码来源:AbstractSearchResult.java
示例12: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
/** {@inheritDoc} */
public void addListener(ISearchResultListener l) {
synchronized (fListeners) {
fListeners.add(l);
}
}
开发者ID:eclipse,项目名称:che,代码行数:7,代码来源:AbstractTextSearchResult.java
示例13: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
/** {@inheritDoc} */
public void removeListener(ISearchResultListener l) {
synchronized (fListeners) {
fListeners.remove(l);
}
}
开发者ID:eclipse,项目名称:che,代码行数:7,代码来源:AbstractTextSearchResult.java
示例14: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void addListener(ISearchResultListener l) {
// do nothing
}
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:5,代码来源:PlanSearchResult.java
示例15: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
@Override
public void removeListener(ISearchResultListener l) {
// do nothing
}
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:5,代码来源:PlanSearchResult.java
示例16: addListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
public void addListener(ISearchResultListener l) {
synchronized (fListeners) {
fListeners.add(l);
}
}
开发者ID:agusevas,项目名称:logan,代码行数:6,代码来源:TextSearchResult.java
示例17: removeListener
import org.eclipse.search.ui.ISearchResultListener; //导入依赖的package包/类
public void removeListener(ISearchResultListener l) {
synchronized (fListeners) {
fListeners.remove(l);
}
}
开发者ID:agusevas,项目名称:logan,代码行数:6,代码来源:TextSearchResult.java
注:本文中的org.eclipse.search.ui.ISearchResultListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论