Search in sources :

Example 1 with QuerySpecification

use of org.eclipse.jdt.ui.search.QuerySpecification in project che by eclipse.

the class NonDeprecatedFilter method isApplicable.

@Override
public boolean isApplicable(JavaSearchQuery query) {
    QuerySpecification spec = query.getSpecification();
    if (spec instanceof ElementQuerySpecification) {
        ElementQuerySpecification elementSpec = (ElementQuerySpecification) spec;
        IJavaElement element = elementSpec.getElement();
        return isParameterizedElement(element);
    }
    return false;
}
Also used : QuerySpecification(org.eclipse.jdt.ui.search.QuerySpecification) PatternQuerySpecification(org.eclipse.jdt.ui.search.PatternQuerySpecification) ElementQuerySpecification(org.eclipse.jdt.ui.search.ElementQuerySpecification) IJavaElement(org.eclipse.jdt.core.IJavaElement) ElementQuerySpecification(org.eclipse.jdt.ui.search.ElementQuerySpecification)

Aggregations

IJavaElement (org.eclipse.jdt.core.IJavaElement)1 ElementQuerySpecification (org.eclipse.jdt.ui.search.ElementQuerySpecification)1 PatternQuerySpecification (org.eclipse.jdt.ui.search.PatternQuerySpecification)1 QuerySpecification (org.eclipse.jdt.ui.search.QuerySpecification)1