use of org.eclipse.search.ui.IQueryListener in project che by eclipse.
the class QueryManager method fireRemoved.
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);
}
}
use of org.eclipse.search.ui.IQueryListener in project che by eclipse.
the class QueryManager method fireAdded.
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);
}
}
use of org.eclipse.search.ui.IQueryListener in project eclipse.platform.text by eclipse.
the class QueryManager method fireAdded.
public void fireAdded(ISearchQuery query) {
Set<IQueryListener> copiedListeners = new HashSet<>();
synchronized (fListeners) {
copiedListeners.addAll(fListeners);
}
Iterator<IQueryListener> listeners = copiedListeners.iterator();
while (listeners.hasNext()) {
IQueryListener l = listeners.next();
l.queryAdded(query);
}
}
use of org.eclipse.search.ui.IQueryListener in project eclipse.platform.text by eclipse.
the class QueryManager method fireRemoved.
public void fireRemoved(ISearchQuery query) {
Set<IQueryListener> copiedListeners = new HashSet<>();
synchronized (fListeners) {
copiedListeners.addAll(fListeners);
}
Iterator<IQueryListener> listeners = copiedListeners.iterator();
while (listeners.hasNext()) {
IQueryListener l = listeners.next();
l.queryRemoved(query);
}
}
use of org.eclipse.search.ui.IQueryListener in project eclipse.platform.text by eclipse.
the class QueryManager method fireStarting.
public void fireStarting(ISearchQuery query) {
Set<IQueryListener> copiedListeners = new HashSet<>();
synchronized (fListeners) {
copiedListeners.addAll(fListeners);
}
Iterator<IQueryListener> listeners = copiedListeners.iterator();
while (listeners.hasNext()) {
IQueryListener l = listeners.next();
l.queryStarting(query);
}
}
Aggregations