Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9e54d5d7a07550a805c2f79bedfa4a3485a9814b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*******************************************************************************
 * Copyright (c) 2012, 2013 Wind River Systems, Inc. and others. All rights reserved.
 * This program and the accompanying materials are made available under the terms
 * of the Eclipse Public License v1.0 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Wind River Systems - initial API and implementation
 *******************************************************************************/
package org.eclipse.tcf.te.runtime.services.interfaces;

/**
 * UI service.
 * <p>
 * Allows to provide customized implementations for UI related functionality which
 * supports delegating parts of the UI logic to context specific delegates.
 */
public interface IUIService extends IService {

	/**
	 * Returns the delegate instance for the requested UI delegate class and context.
	 * <p>
	 * <b>Note:</b> This method should be used for UI related delegates. For non-UI
	 * related delegates, consider to use the {@link IDelegateService} instead.
	 *
	 * @param context The context. Must not be <code>null</code>.
	 * @param clazz The delegate class. Must not be <code>null</code>.
	 *
	 * @return The delegate instance or <code>null</code>.
	 */
	public <V extends Object> V getDelegate(Object context, Class<? extends V> clazz);
}

Back to the top