Search in sources :

Example 1 with ModelQueryAdapterFactoryForTag

use of org.eclipse.jst.jsp.core.internal.modelquery.ModelQueryAdapterFactoryForTag in project webtools.sourceediting by eclipse.

the class TagModelLoader method getAdapterFactories.

public List getAdapterFactories() {
    List factories = super.getAdapterFactories();
    /*
		 * Replace the default JSP model query by using our own factory
		 */
    Iterator i = factories.iterator();
    while (i.hasNext()) {
        if (((INodeAdapterFactory) i.next()).isFactoryForType(ModelQueryAdapter.class)) {
            i.remove();
        }
    }
    factories.add(new ModelQueryAdapterFactoryForTag());
    return factories;
}
Also used : ModelQueryAdapterFactoryForTag(org.eclipse.jst.jsp.core.internal.modelquery.ModelQueryAdapterFactoryForTag) Iterator(java.util.Iterator) List(java.util.List) INodeAdapterFactory(org.eclipse.wst.sse.core.internal.provisional.INodeAdapterFactory)

Aggregations

Iterator (java.util.Iterator)1 List (java.util.List)1 ModelQueryAdapterFactoryForTag (org.eclipse.jst.jsp.core.internal.modelquery.ModelQueryAdapterFactoryForTag)1 INodeAdapterFactory (org.eclipse.wst.sse.core.internal.provisional.INodeAdapterFactory)1