Examples of IAdapterManager


Examples of org.eclipse.core.runtime.IAdapterManager

   * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
   */
  public Object getAdapter(Class adapter) {
    if (adapter == null)
      return null;
    final IAdapterManager adapterManager = Activator.getDefault().getAdapterManager();
    if (adapterManager == null)
      return null;
    return adapterManager.loadAdapter(this, adapter.getName());
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager

    // First, try to get the adapter manager via
    if (adapterManagerTracker == null) {
      adapterManagerTracker = new ServiceTracker(this.context, IAdapterManager.class.getName(), null);
      adapterManagerTracker.open();
    }
    IAdapterManager adapterManager = (IAdapterManager) adapterManagerTracker.getService();
    // Then, if the service isn't there, try to get from Platform class via
    // PlatformHelper class
    if (adapterManager == null)
      adapterManager = PlatformHelper.getPlatformAdapterManager();
    return adapterManager;
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager

    if (adapter == null)
      return null;
    if (adapter.isInstance(this)) {
      return this;
    }
    IAdapterManager adapterManager = Activator.getDefault().getAdapterManager();
    return (adapterManager == null) ? null : adapterManager.loadAdapter(this, adapter.getName());
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager

  public Object getAdapter(Class adapter) {
    if (adapter == null)
      return null;
    if (adapter.isInstance(this))
      return this;
    IAdapterManager adapterManager = Activator.getDefault().getAdapterManager();
    if (adapterManager == null)
      return null;
    return adapterManager.loadAdapter(this, adapter.getName());
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager

  public ID getID() {
    return mainContainer.getConnectedID();
  }

  public Object getAdapter(Class adapter) {
    final IAdapterManager adapterManager = Activator.getDefault().getAdapterManager();
    if (adapterManager == null)
      return null;
    return adapterManager.getAdapter(this, adapter);
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager

    // First, try to get the adapter manager via
    if (adapterManagerTracker == null) {
      adapterManagerTracker = new ServiceTracker(this.context, IAdapterManager.class.getName(), null);
      adapterManagerTracker.open();
    }
    IAdapterManager adapterManager = (IAdapterManager) adapterManagerTracker.getService();
    // Then, if the service isn't there, try to get from Platform class via
    // PlatformHelper class
    if (adapterManager == null)
      adapterManager = PlatformHelper.getPlatformAdapterManager();
    if (adapterManager == null)
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager

   * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
   */
  public Object getAdapter(Class adapter) {
    if (adapter == null)
      return null;
    final IAdapterManager adapterManager = Activator.getDefault().getAdapterManager();
    if (adapterManager == null)
      return null;
    return adapterManager.loadAdapter(this, adapter.getName());
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager

  /* (non-Javadoc)
   * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
   */
  public Object getAdapter(Class adapter) {
    IAdapterManager adapterManager = Activator.getDefault().getAdapterManager();
    if (adapterManager == null)
      return null;
    return adapterManager.loadAdapter(this, adapter.getName());
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager

    if (adapter == null)
      return null;
    if (adapter.isInstance(this)) {
      return this;
    }
    final IAdapterManager adapterManager = Activator.getDefault().getAdapterManager();
    return (adapterManager == null) ? null : adapterManager.loadAdapter(this, adapter.getName());
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager

  public Object getAdapter(Class adapter) {
    if (adapter == null)
      return null;
    if (adapter.isInstance(this))
      return this;
    final IAdapterManager adapterManager = XmppPlugin.getDefault()
        .getAdapterManager();
    return (adapterManager == null) ? null : adapterManager.loadAdapter(
        this, adapter.getName());
  }
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.