Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IAdapterManager


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


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

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

  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

    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

  protected static String[] EMPTY_STRING_ARRAY = new String[] {};
  protected static Class[][] EMPTY_CLASS_ARRAY = new Class[][] {{}};

  protected Set getAdaptersForClass(Class clazz) {
    Set result = new HashSet();
    IAdapterManager adapterManager = ECFPlugin.getDefault().getAdapterManager();
    if (adapterManager != null)
      result.addAll(Arrays.asList(adapterManager.computeAdapterTypes(clazz)));
    return result;
  }
View Full Code Here

    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

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

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

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

TOP

Related Classes of org.eclipse.core.runtime.IAdapterManager

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.