Mercurial > projects > dwt2
comparison org.eclipse.equinox.common/src/org/eclipse/core/runtime/IAdapterFactory.d @ 105:bbe49769ec18
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 08 Nov 2009 12:42:30 +0100 |
parents | bc29606a740c |
children |
comparison
equal
deleted
inserted
replaced
104:88652073d1c2 | 105:bbe49769ec18 |
---|---|
2 * Copyright (c) 2000, 2006 IBM Corporation and others. | 2 * Copyright (c) 2000, 2006 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
8 * Contributors: | 8 * Contributors: |
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | 10 *******************************************************************************/ |
13 module org.eclipse.core.runtime.IAdapterFactory; | 11 // Port to the D programming language: |
12 // Frank Benoit <benoit@tionex.de> | |
13 module org.eclipse.core.runtimeIAdapterFactory; | |
14 | 14 |
15 import java.lang.all; | 15 import java.lang.all; |
16 | |
16 | 17 |
17 /** | 18 /** |
18 * An adapter factory defines behavioral extensions for | 19 * An adapter factory defines behavioral extensions for |
19 * one or more classes that implements the <code>IAdaptable</code> | 20 * one or more classes that implements the <code>IAdaptable</code> |
20 * interface. Adapter factories are registered with an | 21 * interface. Adapter factories are registered with an |
34 * no such object can be found. | 35 * no such object can be found. |
35 * | 36 * |
36 * @param adaptableObject the adaptable object being queried | 37 * @param adaptableObject the adaptable object being queried |
37 * (usually an instance of <code>IAdaptable</code>) | 38 * (usually an instance of <code>IAdaptable</code>) |
38 * @param adapterType the type of adapter to look up | 39 * @param adapterType the type of adapter to look up |
39 * @return a object castable to the given adapter type, | 40 * @return a object castable to the given adapter type, |
40 * or <code>null</code> if this adapter factory | 41 * or <code>null</code> if this adapter factory |
41 * does not have an adapter of the given type for the | 42 * does not have an adapter of the given type for the |
42 * given object | 43 * given object |
43 */ | 44 */ |
44 public Object getAdapter(Object adaptableObject, ClassInfo adapterType); | 45 public Object getAdapter(Object adaptableObject, Class adapterType); |
45 | 46 |
46 /** | 47 /** |
47 * Returns the collection of adapter types handled by this | 48 * Returns the collection of adapter types handled by this |
48 * factory. | 49 * factory. |
49 * <p> | 50 * <p> |
52 * of dispatching any actual <code>getAdapter</code> requests. | 53 * of dispatching any actual <code>getAdapter</code> requests. |
53 * </p> | 54 * </p> |
54 * | 55 * |
55 * @return the collection of adapter types | 56 * @return the collection of adapter types |
56 */ | 57 */ |
57 public ClassInfo[] getAdapterList(); | 58 public Class[] getAdapterList(); |
58 } | 59 } |