Search in sources :

Example 1 with ModelQueryAdapterFactoryForHTML

use of org.eclipse.wst.html.core.internal.modelquery.ModelQueryAdapterFactoryForHTML in project webtools.sourceediting by eclipse.

the class HTMLModelLoader method getAdapterFactories.

/**
 * This method must return those factories which must be attached to the
 * structuredModel before content is applied.
 */
public List getAdapterFactories() {
    List result = new ArrayList();
    INodeAdapterFactory factory = null;
    factory = StyleAdapterFactory.getInstance();
    result.add(factory);
    factory = HTMLStyleSelectorAdapterFactory.getInstance();
    result.add(factory);
    factory = HTMLDocumentTypeAdapterFactory.getInstance();
    result.add(factory);
    factory = HTMLModelParserAdapterFactory.getInstance();
    result.add(factory);
    // 
    factory = new ModelQueryAdapterFactoryForHTML();
    result.add(factory);
    factory = new PropagatingAdapterFactoryImpl();
    result.add(factory);
    return result;
}
Also used : PropagatingAdapterFactoryImpl(org.eclipse.wst.xml.core.internal.propagate.PropagatingAdapterFactoryImpl) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) ModelQueryAdapterFactoryForHTML(org.eclipse.wst.html.core.internal.modelquery.ModelQueryAdapterFactoryForHTML) INodeAdapterFactory(org.eclipse.wst.sse.core.internal.provisional.INodeAdapterFactory)

Example 2 with ModelQueryAdapterFactoryForHTML

use of org.eclipse.wst.html.core.internal.modelquery.ModelQueryAdapterFactoryForHTML in project webtools.sourceediting by eclipse.

the class HTMLDocumentLoader method getAdapterFactories.

/**
 * This method must return those factories which must be attached to the
 * structuredModel before content is applied.
 */
public List getAdapterFactories() {
    List result = new ArrayList();
    INodeAdapterFactory factory = null;
    factory = StyleAdapterFactory.getInstance();
    result.add(factory);
    factory = HTMLStyleSelectorAdapterFactory.getInstance();
    result.add(factory);
    factory = HTMLDocumentTypeAdapterFactory.getInstance();
    result.add(factory);
    factory = HTMLModelParserAdapterFactory.getInstance();
    result.add(factory);
    // 
    factory = new ModelQueryAdapterFactoryForHTML();
    result.add(factory);
    factory = new PropagatingAdapterFactoryImpl();
    result.add(factory);
    return result;
}
Also used : PropagatingAdapterFactoryImpl(org.eclipse.wst.xml.core.internal.propagate.PropagatingAdapterFactoryImpl) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) ModelQueryAdapterFactoryForHTML(org.eclipse.wst.html.core.internal.modelquery.ModelQueryAdapterFactoryForHTML) INodeAdapterFactory(org.eclipse.wst.sse.core.internal.provisional.INodeAdapterFactory)

Aggregations

ArrayList (java.util.ArrayList)2 List (java.util.List)2 ModelQueryAdapterFactoryForHTML (org.eclipse.wst.html.core.internal.modelquery.ModelQueryAdapterFactoryForHTML)2 INodeAdapterFactory (org.eclipse.wst.sse.core.internal.provisional.INodeAdapterFactory)2 PropagatingAdapterFactoryImpl (org.eclipse.wst.xml.core.internal.propagate.PropagatingAdapterFactoryImpl)2