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

Examples of org.eclipse.wst.sse.core.internal.PropagatingAdapter


    // children being
    // created. Each time that happends, a side effect is to
    // also "spread" sprecific registered adapters,
    // they two can propigate is needed.
    // This 'get' causes first to be be attached.
    PropagatingAdapter propagatingAdapter = (PropagatingAdapter) ((INodeNotifier) document).getAdapterFor(PropagatingAdapter.class);
    // may make this easier to use in futue
    propagatingAdapter.addAdaptOnCreateFactory(new PageDirectiveWatcherFactory());
    if (Debug.debugNotificationAndEvents) {
      propagatingAdapter.addAdaptOnCreateFactory(new DebugAdapterFactory());
    }
    // For JSPs, the ModelQueryAdapter must be "attached" to the document
    // before content is set in the model, so taglib initization can
    // take place.
    ((INodeNotifier) document).getAdapterFor(ModelQueryAdapter.class);
View Full Code Here


    // created. Each time that happends, a side effect is to
    // also "spread" sprecific registered adapters,
    // they two can propigate is needed.
    ((INodeNotifier) domModel.getDocument()).getAdapterFor(PropagatingAdapter.class);
    if (Debug.debugNotificationAndEvents) {
      PropagatingAdapter propagatingAdapter = (PropagatingAdapter) ((INodeNotifier) domModel.getDocument()).getAdapterFor(PropagatingAdapter.class);
      propagatingAdapter.addAdaptOnCreateFactory(new DebugAdapterFactory());
    }  }
View Full Code Here

    // children being
    // created. Each time that happends, a side effect is to
    // also "spread" sprecific registered adapters,
    // they two can propigate is needed.
    // This 'get' causes first to be be attached.
    PropagatingAdapter propagatingAdapter = (PropagatingAdapter) ((INodeNotifier) document).getAdapterFor(PropagatingAdapter.class);
    // may make this easier to use in futue
    propagatingAdapter.addAdaptOnCreateFactory(new PageDirectiveWatcherFactory());
    // For JSPs, the ModelQueryAdapter must be "attached" to the document
    // before content is set in the model, so taglib initization can
    // take place.
    ((INodeNotifier) document).getAdapterFor(ModelQueryAdapter.class);
View Full Code Here

  protected void addPropagatingAdapters(IStructuredModel structuredModel) {

    if (structuredModel instanceof IDOMModel) {
      IDOMModel xmlModel = (IDOMModel) structuredModel;
      IDOMDocument document = xmlModel.getDocument();
      PropagatingAdapter propagatingAdapter = (PropagatingAdapter) document.getAdapterFor(PropagatingAdapter.class);
      if (propagatingAdapter != null) {
        // what to do?
      }
    }
  }
View Full Code Here

      }
    }

    if (model instanceof IDOMModel) {
      IDOMDocument doc = ((IDOMModel) model).getDocument();
      PropagatingAdapter adapter = (PropagatingAdapter) doc
          .getAdapterFor(PropagatingAdapter.class);
      if (adapter != null) {
        INodeAdapterFactory factory = RefresherFactory.getInstance();
        adapter.addAdaptOnCreateFactory(factory);
        adapter.initializeForFactory(factory, doc);
        // CSSStyleAdapterFactory fac2 =
        // CSSStyleAdapterFactory.getInstance();
        // adapter.addAdaptOnCreateFactory(fac2);
        // adapter.initializeForFactory(fac2, doc);
      }
View Full Code Here

    // also "spread" sprecific registered adapters,
    // they two can propigate is needed.
    ((INodeNotifier) domModel.getDocument()).getAdapterFor(PropagatingAdapter.class);

    if (Debug.debugNotificationAndEvents) {
      PropagatingAdapter propagatingAdapter = (PropagatingAdapter) ((INodeNotifier) domModel.getDocument()).getAdapterFor(PropagatingAdapter.class);
      propagatingAdapter.addAdaptOnCreateFactory(new DebugAdapterFactory());
    }

  }
View Full Code Here

  protected void addPropagatingAdapters(IStructuredModel structuredModel) {

    if (structuredModel instanceof IDOMModel) {
      IDOMModel xmlModel = (IDOMModel) structuredModel;
      IDOMDocument document = xmlModel.getDocument();
      PropagatingAdapter propagatingAdapter = (PropagatingAdapter) document
          .getAdapterFor(PropagatingAdapter.class);
      if (propagatingAdapter != null) {
        // what to do?
      }
    }
View Full Code Here

            factoryRegistry.addFactory(newFactory);

            // add factory to propogating adapter
            final IDOMModel domModel = (IDOMModel) sModel;
            final IDOMDocument document = domModel.getDocument();
            final PropagatingAdapter propagatingAdapter = (PropagatingAdapter) ((INodeNotifier) document)
                .getAdapterFor(PropagatingAdapter.class);
            if (propagatingAdapter != null) {
              propagatingAdapter
                  .addAdaptOnCreateFactory(newFactory);
            }
          }

          // try and get the factory
View Full Code Here

                        factoryRegistry.addFactory(newFactory);

                        // add factory to propogating adapter
                        final IDOMModel domModel = (IDOMModel) sModel;
                        final IDOMDocument document = domModel.getDocument();
                        final PropagatingAdapter propagatingAdapter = (PropagatingAdapter) ((INodeNotifier) document)
                                .getAdapterFor(PropagatingAdapter.class);
                        if (propagatingAdapter != null) {
                            propagatingAdapter
                                    .addAdaptOnCreateFactory(newFactory);
                        }
                    }

                    // try and get the factory
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.core.internal.PropagatingAdapter

Copyright © 2018 www.massapicom. 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.