Search in sources :

Example 1 with PropagatingAdapterFactoryImpl

use of org.eclipse.wst.xml.core.internal.propagate.PropagatingAdapterFactoryImpl 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 PropagatingAdapterFactoryImpl

use of org.eclipse.wst.xml.core.internal.propagate.PropagatingAdapterFactoryImpl in project webtools.sourceediting by eclipse.

the class XMLModelLoader method getAdapterFactories.

public List getAdapterFactories() {
    List result = new ArrayList();
    INodeAdapterFactory factory = null;
    factory = new ModelQueryAdapterFactoryForXML();
    result.add(factory);
    // Does XML need propagating adapter? Or just JSP?
    factory = new PropagatingAdapterFactoryImpl();
    result.add(factory);
    return result;
}
Also used : ModelQueryAdapterFactoryForXML(org.eclipse.wst.xml.core.internal.modelquery.ModelQueryAdapterFactoryForXML) PropagatingAdapterFactoryImpl(org.eclipse.wst.xml.core.internal.propagate.PropagatingAdapterFactoryImpl) ArrayList(java.util.ArrayList) ArrayList(java.util.ArrayList) List(java.util.List) INodeAdapterFactory(org.eclipse.wst.sse.core.internal.provisional.INodeAdapterFactory)

Example 3 with PropagatingAdapterFactoryImpl

use of org.eclipse.wst.xml.core.internal.propagate.PropagatingAdapterFactoryImpl in project webtools.sourceediting by eclipse.

the class JSPModelLoader 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 = new ModelQueryAdapterFactoryForJSP();
    result.add(factory);
    factory = new PropagatingAdapterFactoryImpl();
    result.add(factory);
    factory = new PageDirectiveAdapterFactory();
    result.add(factory);
    return result;
}
Also used : ModelQueryAdapterFactoryForJSP(org.eclipse.jst.jsp.core.internal.modelquery.ModelQueryAdapterFactoryForJSP) PropagatingAdapterFactoryImpl(org.eclipse.wst.xml.core.internal.propagate.PropagatingAdapterFactoryImpl) PageDirectiveAdapterFactory(org.eclipse.jst.jsp.core.internal.document.PageDirectiveAdapterFactory) ArrayList(java.util.ArrayList) List(java.util.List) ArrayList(java.util.ArrayList) INodeAdapterFactory(org.eclipse.wst.sse.core.internal.provisional.INodeAdapterFactory)

Example 4 with PropagatingAdapterFactoryImpl

use of org.eclipse.wst.xml.core.internal.propagate.PropagatingAdapterFactoryImpl 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)4 List (java.util.List)4 INodeAdapterFactory (org.eclipse.wst.sse.core.internal.provisional.INodeAdapterFactory)4 PropagatingAdapterFactoryImpl (org.eclipse.wst.xml.core.internal.propagate.PropagatingAdapterFactoryImpl)4 ModelQueryAdapterFactoryForHTML (org.eclipse.wst.html.core.internal.modelquery.ModelQueryAdapterFactoryForHTML)2 PageDirectiveAdapterFactory (org.eclipse.jst.jsp.core.internal.document.PageDirectiveAdapterFactory)1 ModelQueryAdapterFactoryForJSP (org.eclipse.jst.jsp.core.internal.modelquery.ModelQueryAdapterFactoryForJSP)1 ModelQueryAdapterFactoryForXML (org.eclipse.wst.xml.core.internal.modelquery.ModelQueryAdapterFactoryForXML)1