Package org.eclipse.wst.sse.core.internal.provisional

Examples of org.eclipse.wst.sse.core.internal.provisional.INodeAdapterFactory.adapt()


      synchronized (adaptOnCreateFactories) {
        int length = adaptOnCreateFactories.size();
        for (int i = 0; i < length; i++) {
          INodeAdapterFactory factory = (INodeAdapterFactory) adaptOnCreateFactories.get(i);
          factory.adapt(node);
        }
      }

    }
View Full Code Here


        if (embeddedContentTypeHandler != null) {
          List adapterFactories = embeddedContentTypeHandler.getAdapterFactories();
          for (int i = 0; i < adapterFactories.size(); i++) {
            INodeAdapterFactory factory = (INodeAdapterFactory) adapterFactories.get(i);
            if (factory.isFactoryForType(ModelQueryAdapter.class)) {
              INodeAdapter adapter = factory.adapt((INodeNotifier) node.getOwnerDocument());
              if (adapter instanceof ModelQueryAdapter) {
                fEmbeddedModelQuery = ((ModelQueryAdapter) adapter).getModelQuery();
              }
            }
          }
View Full Code Here

    boolean isXMLJSP = isXMLJSP(document);
    boolean hasHTMLFeature = hasHTMLFeature(document);

    if (hasHTMLFeature && !isXMLJSP) {
      INodeAdapterFactory factory = HTMLValidationAdapterFactory.getInstance();
      ValidationAdapter adapter = (ValidationAdapter) factory.adapt(document);
      if (adapter != null) {
        HTMLValidationReporter rep = getReporter(reporter, file, model);
        rep.clear();
        adapter.setReporter(rep);
        adapter.validate(document);
View Full Code Here

    // JSP
    boolean hasXMLFeature = isXMLJSP(document);
    boolean hasHTMLFeature = hasHTMLFeature(document);
    if (hasHTMLFeature && !hasXMLFeature) {
      INodeAdapterFactory factory = HTMLValidationAdapterFactory.getInstance();
      ValidationAdapter adapter = (ValidationAdapter) factory.adapt(document);
      if (adapter == null)
        return; // error

      HTMLValidationReporter rep = getReporter(reporter, file, model);
      rep.clear();
View Full Code Here

        Iterator iterator = embeddedFactoryRegistry.iterator();
        INodeAdapterFactory factory = null;
        while (iterator.hasNext()) {
          factory = (INodeAdapterFactory) iterator.next();
          if (factory.isFactoryForType(type)) {
            result = factory.adapt(notifier);
            break;
          }
        }
      }
    }
View Full Code Here

        Iterator iterator = embeddedFactoryRegistry.iterator();
        INodeAdapterFactory factory = null;
        while (iterator.hasNext()) {
          factory = (INodeAdapterFactory) iterator.next();
          if (factory.isFactoryForType(type)) {
            result = factory.adapt(notifier);
            break;
          }
        }
      }
    }
View Full Code Here

    boolean isXMLJSP = isXMLJSP(document);
    boolean hasHTMLFeature = hasHTMLFeature(document);

    if (hasHTMLFeature && !isXMLJSP) {
      INodeAdapterFactory factory = HTMLValidationAdapterFactory.getInstance();
      ValidationAdapter adapter = (ValidationAdapter) factory.adapt(document);
      if (adapter != null) {
        HTMLValidationReporter rep = getReporter(reporter, file, model);
        rep.clear();
        adapter.setReporter(rep);
        adapter.validate(document);
View Full Code Here

    // JSP
    boolean hasXMLFeature = isXMLJSP(document);
    boolean hasHTMLFeature = hasHTMLFeature(document);
    if (hasHTMLFeature && !hasXMLFeature) {
      INodeAdapterFactory factory = HTMLValidationAdapterFactory.getInstance();
      ValidationAdapter adapter = (ValidationAdapter) factory.adapt(document);
      if (adapter == null)
        return; // error

      HTMLValidationReporter rep = getReporter(reporter, file, model);
      rep.clear();
View Full Code Here

      }

      if (ir instanceof INodeNotifier) {

        INodeAdapterFactory factory = HTMLValidationAdapterFactory.getInstance();
        ValidationAdapter adapter = (ValidationAdapter) factory.adapt((INodeNotifier) ir);
        if (adapter == null)
          return; // error

        if (reporter != null) {
          HTMLValidationReporter rep = null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.