Flex: override markers for mxml components methods
[fedora-idea.git] / lang-api / src / com / intellij / psi / search / searches / DefinitionsSearch.java
blob118347545b2e2426a2390283426eab2d110078a4
1 /*
2 * Copyright 2000-2007 JetBrains s.r.o.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package com.intellij.psi.search.searches;
19 import com.intellij.psi.PsiElement;
20 import com.intellij.util.Query;
21 import com.intellij.util.UniqueResultsQuery;
23 /**
24 * The search is used in two IDE navigation functions namely Go To Implementation (Ctrl+Alt+B) and
25 * Quick View Definition (Ctrl+Shift+I). Default searchers produce implementing/overriding methods if the method
26 * have been searched and class inheritors for the class.
28 * @author max
30 public class DefinitionsSearch extends ExtensibleQueryFactory<PsiElement, PsiElement> {
31 public static DefinitionsSearch INSTANCE = new DefinitionsSearch();
33 public static Query<PsiElement> search(PsiElement definitionsOf) {
34 return new UniqueResultsQuery<PsiElement>(INSTANCE.createQuery(definitionsOf));