KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > part > multiplexer > IDelegatingContext


1 /*******************************************************************************
2  * Copyright (c) 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.internal.part.multiplexer;
12
13 import org.eclipse.ui.internal.components.framework.IServiceProvider;
14
15 /**
16  * An object implementing this interface will be made available as
17  * a service to delegating components. Simple, infrequently
18  * used components may wish to use this service to dynamically query
19  * for the interface to delegate to rather than implementing
20  * <code>IDelegatingComponent</code>.
21  *
22  * <p>EXPERIMENTAL: The components framework is currently under active development. All
23  * aspects of this class including its existence, name, and public interface are likely
24  * to change during the development of Eclipse 3.1</p>
25  *
26  * @since 3.1
27  */

28 public interface IDelegatingContext {
29     /**
30      * Returns the active service provider for this context, or null
31      * if this context is delegating nowhere. This pointer will change
32      * dynamically, and should not be cached.
33      *
34      * @return the active service provider for this context, or null
35      * if this context is delegating nowhere
36      */

37     public IServiceProvider getActive();
38 }
39
Popular Tags