Package org.eclipse.wst.sse.ui.internal.provisional.registry

Examples of org.eclipse.wst.sse.ui.internal.provisional.registry.AdapterFactoryRegistry


  public static void addFactoriesTo(final IStructuredModel structuredModel) {
    if (structuredModel == null)
      return;
   
    AdapterFactoryRegistry adapterRegistry = SSEUIPlugin.getDefault().getAdapterFactoryRegistry();
    String contentTypeId = structuredModel.getContentTypeIdentifier();

    Iterator adapterFactoryProviders = null;
    if (adapterRegistry instanceof AdapterFactoryRegistryExtension) {
      adapterFactoryProviders = ((AdapterFactoryRegistryExtension) adapterRegistry).getAdapterFactories(contentTypeId);
    }
    else {
      adapterFactoryProviders = adapterRegistry.getAdapterFactories();
    }

    FactoryRegistry factoryRegistry = structuredModel.getFactoryRegistry();
    Assert.isNotNull(factoryRegistry, SSEUIMessages.EditorModelUtil_0); //$NON-NLS-1$
    // Add all those appropriate for this particular type of content
View Full Code Here


            PageDirectiveAdapter outerEmbeddedTypeAdapter = (PageDirectiveAdapter) xmlOuterModel.getDocument().getAdapterFor(PageDirectiveAdapter.class);
            PageDirectiveAdapter internalEmbeddedTypeAdapter = (PageDirectiveAdapter) ((INodeNotifier) ((Node) internalNode).getOwnerDocument()).getAdapterFor(PageDirectiveAdapter.class);
            internalEmbeddedTypeAdapter.setEmbeddedType(outerEmbeddedTypeAdapter.getEmbeddedType());
          }

          AdapterFactoryRegistry adapterRegistry = JSPUIPlugin.getDefault().getAdapterFactoryRegistry();
          Iterator adapterList = adapterRegistry.getAdapterFactories();
          // And all those appropriate for this particular type
          // of content
          while (adapterList.hasNext()) {
            try {
              AdapterFactoryProvider provider = (AdapterFactoryProvider) adapterList.next();
View Full Code Here

  public static void addFactoriesTo(final IStructuredModel structuredModel) {
    if (structuredModel == null)
      return;
   
    AdapterFactoryRegistry adapterRegistry = SSEUIPlugin.getDefault().getAdapterFactoryRegistry();
    String contentTypeId = structuredModel.getContentTypeIdentifier();

    Iterator adapterFactoryProviders = null;
    if (adapterRegistry instanceof AdapterFactoryRegistryExtension) {
      adapterFactoryProviders = ((AdapterFactoryRegistryExtension) adapterRegistry).getAdapterFactories(contentTypeId);
    }
    else {
      adapterFactoryProviders = adapterRegistry.getAdapterFactories();
    }

    FactoryRegistry factoryRegistry = structuredModel.getFactoryRegistry();
    Assert.isNotNull(factoryRegistry, SSEUIMessages.EditorModelUtil_0); //$NON-NLS-1$
    // Add all those appropriate for this particular type of content
View Full Code Here

TOP

Related Classes of org.eclipse.wst.sse.ui.internal.provisional.registry.AdapterFactoryRegistry

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.