diff options
author | Lars Vogel | 2015-10-13 16:16:30 +0000 |
---|---|---|
committer | Lars Vogel | 2015-10-13 16:16:30 +0000 |
commit | 6d8a79c25c4cea891cc1cc35b82aaafe948f4161 (patch) | |
tree | c754b7ccdda81acc0531453fd8ab1fd6120d56a2 /bundles/org.eclipse.equinox.common | |
parent | cfd2db785b81221deeaaa8e3850a89e5415f33c6 (diff) | |
download | rt.equinox.bundles-6d8a79c25c4cea891cc1cc35b82aaafe948f4161.tar.gz rt.equinox.bundles-6d8a79c25c4cea891cc1cc35b82aaafe948f4161.tar.xz rt.equinox.bundles-6d8a79c25c4cea891cc1cc35b82aaafe948f4161.zip |
Bug 478864 - Rename Adapters.getAdapter to Adapters.adapt
Change-Id: Ie5e49a0b27c3e1d9b2f01549ddefb05bec4a349c
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.common')
-rw-r--r-- | bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/IAdaptable.java | 3 | ||||
-rw-r--r-- | bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/IAdapterManager.java | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/IAdaptable.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/IAdaptable.java index b060211f9..d15e6cc23 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/IAdaptable.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/IAdaptable.java @@ -8,6 +8,7 @@ * Contributors: * IBM Corporation - initial API and implementation * Sergey Prigogin (Google) - use parameterized types (bug 442021) + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 478864 *******************************************************************************/ package org.eclipse.core.runtime; @@ -42,7 +43,7 @@ public interface IAdaptable { * associated with this object. Returns <code>null</code> if * no such object can be found. * <p> - * Clients may implement this method but should generally call {@link Adapters#getAdapter(Object, Class, boolean)} + * Clients may implement this method but should generally call {@link Adapters#adapt(Object, Class, boolean)} * rather than invoking it directly. * * @param adapter the adapter class to look up diff --git a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/IAdapterManager.java b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/IAdapterManager.java index d76381e07..cad1c1396 100644 --- a/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/IAdapterManager.java +++ b/bundles/org.eclipse.equinox.common/src/org/eclipse/core/runtime/IAdapterManager.java @@ -8,6 +8,7 @@ * Contributors: * IBM Corporation - initial API and implementation * Sergey Prigogin (Google) - use parameterized types (bug 442021) + * Lars Vogel <Lars.Vogel@vogella.com> - Bug 478864 *******************************************************************************/ package org.eclipse.core.runtime; @@ -136,7 +137,7 @@ public interface IAdapterManager { * only suitable factory is not yet loaded, this method will return <code>null</code>. * <p> * In most cases, it is preferable for client code to use - * {@link Adapters#getAdapter(Object, Class, boolean)} rather than calling this + * {@link Adapters#adapt(Object, Class, boolean)} rather than calling this * method directly since doing so will also detect interfaces supplied by the * {@link IAdaptable} interface * @@ -160,7 +161,7 @@ public interface IAdapterManager { * <code>loadAdapter</code> method instead. * <p> * In most cases, it is preferable for client code to use - * {@link Adapters#getAdapter(Object, Class, boolean)} rather than calling this + * {@link Adapters#adapt(Object, Class, boolean)} rather than calling this * method directly since doing so will also detect interfaces supplied by the * {@link IAdaptable} interface * @@ -225,7 +226,7 @@ public interface IAdapterManager { * activation by using <code>getAdapter</code> instead. * <p> * In most cases, it is preferable for client code to use - * {@link Adapters#getAdapter(Object, Class, boolean)} rather than calling this + * {@link Adapters#adapt(Object, Class, boolean)} rather than calling this * method directly since doing so will also detect interfaces supplied by the * {@link IAdaptable} interface. * |