Examples of loadAdapter()


Examples of com.sk89q.worldedit.bukkit.adapter.BukkitImplLoader.loadAdapter()

            adapterLoader.addFromJar(getFile());
        } catch (IOException e) {
            log.log(Level.WARNING, "Failed to search " + getFile() + " for Bukkit adapters", e);
        }
        try {
            bukkitAdapter = adapterLoader.loadAdapter();
            log.log(Level.INFO, "Using " + bukkitAdapter.getClass().getCanonicalName() + " as the Bukkit adapter");
        } catch (AdapterLoadException e) {
            Platform platform = worldEdit.getPlatformManager().queryCapability(Capability.WORLD_EDITING);
            if (platform instanceof BukkitServerInterface) {
                log.log(Level.WARNING, e.getMessage());
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager.loadAdapter()

    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

Examples of org.eclipse.core.runtime.IAdapterManager.loadAdapter()

   */
  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

Examples of org.eclipse.core.runtime.IAdapterManager.loadAdapter()

    }
    final IAdapterManager adapterManager = DiscoveryPlugin.getDefault()
        .getAdapterManager();
    if (adapterManager == null)
      return null;
    return adapterManager.loadAdapter(this, adapter.getName());
  }

  /**
   * (non-Javadoc)
   * @see org.eclipse.ecf.discovery.IServiceInfo#getServiceName()  
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager.loadAdapter()

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

Examples of org.eclipse.core.runtime.IAdapterManager.loadAdapter()

    }
    ECFPlugin plugin = ECFPlugin.getDefault();
    if (plugin == null)
      return null;
    IAdapterManager adapterManager = plugin.getAdapterManager();
    return (adapterManager == null) ? null : adapterManager.loadAdapter(this, serviceType.getName());
  }

  protected String getPasswordFromConnectContext(IConnectContext connectContext) throws ContainerConnectException {
    String pw = null;
    try {
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager.loadAdapter()

      return this;
    }
    IAdapterManager adapterManager = PresencePlugin.getDefault().getAdapterManager();
    if (adapterManager == null)
      return null;
    return adapterManager.loadAdapter(this, adapter.getName());
  }

  public IPresence getPresence() {
    return presence;
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager.loadAdapter()

      return this;
    }
    IAdapterManager adapterManager = ECFPlugin.getDefault().getAdapterManager();
    if (adapterManager == null)
      return null;
    return adapterManager.loadAdapter(this, adapter.getName());
  }

  public String toString() {
    StringBuffer sb = new StringBuffer("User["); //$NON-NLS-1$
    sb.append("id=" + getID()).append(";name=" + getName()); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager.loadAdapter()

      return this;
    }
    IAdapterManager adapterManager = PresencePlugin.getDefault().getAdapterManager();
    if (adapterManager == null)
      return null;
    return adapterManager.loadAdapter(this, adapter.getName());
  }

  public String toString() {
    StringBuffer sb = new StringBuffer("ResultList["); //$NON-NLS-1$
    sb.append("results=").append(getResults()).append("]"); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of org.eclipse.core.runtime.IAdapterManager.loadAdapter()

      return this;
    }
    IAdapterManager adapterManager = PresencePlugin.getDefault().getAdapterManager();
    if (adapterManager == null)
      return null;
    return adapterManager.loadAdapter(this, adapter.getName());
  }

  public IRoster getRoster() {
    if (this instanceof IRoster)
      return (IRoster) this;
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.