本文整理汇总了Java中org.eclipse.search.ui.IQueryListener类的典型用法代码示例。如果您正苦于以下问题:Java IQueryListener类的具体用法?Java IQueryListener怎么用?Java IQueryListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IQueryListener类属于org.eclipse.search.ui包,在下文中一共展示了IQueryListener类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setInput
import org.eclipse.search.ui.IQueryListener; //导入依赖的package包/类
@Override
public void setInput(final ISearchResult newSearch, final Object viewState)
{
super.setInput(newSearch, viewState);
if (newSearch != null)
{
if (getLayout() == AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT)
{
final IJiveSearchResult result = (IJiveSearchResult) newSearch;
final IJiveSearchQuery query = result.getQuery();
resultType = query.getResultType();
setLayout(AbstractTextSearchViewPage.FLAG_LAYOUT_TREE);
setLayout(AbstractTextSearchViewPage.FLAG_LAYOUT_FLAT);
}
// Display the sequence diagram and notify it of changing results
final IJiveGraphicalView diagram = (IJiveGraphicalView) showView(JiveUIPlugin.ID_SEQUENCE_DIAGRAM_VIEW);
final IJiveDebugTarget activeTarget = JiveSearchResultPage.activeTarget();
if (activeTarget != null)
{
final GraphicalViewer viewer = diagram.getViewer();
final IQueryListener contents = (IQueryListener) viewer.getContents();
contents.queryFinished(newSearch.getQuery());
}
}
}
开发者ID:UBPL,项目名称:jive,代码行数:26,代码来源:JiveSearchResultPage.java
示例2: fireAdded
import org.eclipse.search.ui.IQueryListener; //导入依赖的package包/类
public void fireAdded(ISearchQuery query) {
Set copiedListeners = new HashSet();
synchronized (fListeners) {
copiedListeners.addAll(fListeners);
}
Iterator listeners = copiedListeners.iterator();
while (listeners.hasNext()) {
IQueryListener l = (IQueryListener) listeners.next();
l.queryAdded(query);
}
}
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:QueryManager.java
示例3: fireRemoved
import org.eclipse.search.ui.IQueryListener; //导入依赖的package包/类
public void fireRemoved(ISearchQuery query) {
Set copiedListeners = new HashSet();
synchronized (fListeners) {
copiedListeners.addAll(fListeners);
}
Iterator listeners = copiedListeners.iterator();
while (listeners.hasNext()) {
IQueryListener l = (IQueryListener) listeners.next();
l.queryRemoved(query);
}
}
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:QueryManager.java
示例4: fireStarting
import org.eclipse.search.ui.IQueryListener; //导入依赖的package包/类
public void fireStarting(ISearchQuery query) {
Set copiedListeners = new HashSet();
synchronized (fListeners) {
copiedListeners.addAll(fListeners);
}
Iterator listeners = copiedListeners.iterator();
while (listeners.hasNext()) {
IQueryListener l = (IQueryListener) listeners.next();
l.queryStarting(query);
}
}
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:QueryManager.java
示例5: fireFinished
import org.eclipse.search.ui.IQueryListener; //导入依赖的package包/类
public void fireFinished(ISearchQuery query) {
Set copiedListeners = new HashSet();
synchronized (fListeners) {
copiedListeners.addAll(fListeners);
}
Iterator listeners = copiedListeners.iterator();
while (listeners.hasNext()) {
IQueryListener l = (IQueryListener) listeners.next();
l.queryFinished(query);
}
}
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:QueryManager.java
示例6: addQueryListener
import org.eclipse.search.ui.IQueryListener; //导入依赖的package包/类
public void addQueryListener(IQueryListener l) {
synchronized (fListeners) {
fListeners.add(l);
}
}
开发者ID:eclipse,项目名称:che,代码行数:6,代码来源:QueryManager.java
示例7: removeQueryListener
import org.eclipse.search.ui.IQueryListener; //导入依赖的package包/类
public void removeQueryListener(IQueryListener l) {
synchronized (fListeners) {
fListeners.remove(l);
}
}
开发者ID:eclipse,项目名称:che,代码行数:6,代码来源:QueryManager.java
示例8: addQueryListener
import org.eclipse.search.ui.IQueryListener; //导入依赖的package包/类
public void addQueryListener(IQueryListener l) {
getSearchManager().addQueryListener(l);
}
开发者ID:eclipse,项目名称:che,代码行数:4,代码来源:InternalSearchUI.java
示例9: removeQueryListener
import org.eclipse.search.ui.IQueryListener; //导入依赖的package包/类
public void removeQueryListener(IQueryListener l) {
getSearchManager().removeQueryListener(l);
}
开发者ID:eclipse,项目名称:che,代码行数:4,代码来源:InternalSearchUI.java
示例10: addQueryListener
import org.eclipse.search.ui.IQueryListener; //导入依赖的package包/类
/**
* Registers the given listener to receive notification of changes to queries. The listener will
* be notified whenever a query has been added, removed, is starting or has finished. Has no
* effect if an identical listener is already registered.
*
* @param l the listener to be added
*/
public static void addQueryListener(IQueryListener l) {
InternalSearchUI.getInstance().addQueryListener(l);
}
开发者ID:eclipse,项目名称:che,代码行数:11,代码来源:NewSearchUI.java
示例11: removeQueryListener
import org.eclipse.search.ui.IQueryListener; //导入依赖的package包/类
/**
* Removes the given query listener. Does nothing if the listener is not present.
*
* @param l the listener to be removed.
*/
public static void removeQueryListener(IQueryListener l) {
InternalSearchUI.getInstance().removeQueryListener(l);
}
开发者ID:eclipse,项目名称:che,代码行数:9,代码来源:NewSearchUI.java
注:本文中的org.eclipse.search.ui.IQueryListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论