Examples of AdapterFactoryProvider


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

    FactoryRegistry factoryRegistry = structuredModel.getFactoryRegistry();
    Assert.isNotNull(factoryRegistry, SSEUIMessages.EditorModelUtil_0); //$NON-NLS-1$
    // Add all those appropriate for this particular type of content
    while (adapterFactoryProviders.hasNext()) {
      try {
        final AdapterFactoryProvider provider = (AdapterFactoryProvider) adapterFactoryProviders.next();
        /*
         * ContentType might have already been checked above, this
         * check is here for backwards compatability for those that
         * don't specify a content type
         */
        if (provider.isFor(structuredModel.getModelHandler())) {
          SafeRunner.run(new SafeRunnable(SSEUIMessages.EditorModelUtil_1) { //$NON-NLS-1$
                  public void run() {
                    provider.addAdapterFactories(structuredModel);
                  }
                });
        }
      }
      catch (Exception e) {
View Full Code Here

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

          Iterator adapterList = adapterRegistry.getAdapterFactories();
          // And all those appropriate for this particular type
          // of content
          while (adapterList.hasNext()) {
            try {
              AdapterFactoryProvider provider = (AdapterFactoryProvider) adapterList.next();
              if (provider.isFor(internalModel.getModelHandler())) {
                provider.addAdapterFactories(internalModel);
              }
            }
            catch (Exception e) {
              Logger.logException(e);
            }
View Full Code Here

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

    FactoryRegistry factoryRegistry = structuredModel.getFactoryRegistry();
    Assert.isNotNull(factoryRegistry, SSEUIMessages.EditorModelUtil_0); //$NON-NLS-1$
    // Add all those appropriate for this particular type of content
    while (adapterFactoryProviders.hasNext()) {
      try {
        final AdapterFactoryProvider provider = (AdapterFactoryProvider) adapterFactoryProviders.next();
        /*
         * ContentType might have already been checked above, this
         * check is here for backwards compatability for those that
         * don't specify a content type
         */
        if (provider.isFor(structuredModel.getModelHandler())) {
          SafeRunner.run(new SafeRunnable(SSEUIMessages.EditorModelUtil_1) { //$NON-NLS-1$
                  public void run() {
                    provider.addAdapterFactories(structuredModel);
                  }
                });
        }
      }
      catch (Exception e) {
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.