Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1150740f20497f1fe5db2e20136e34819a1b8e95 (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) 2016 Christian W. Damus 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:
 *   Christian W. Damus - Initial API and implementation
 *   
 *****************************************************************************/

package org.eclipse.papyrus.infra.core.services.spi;

import org.eclipse.papyrus.infra.core.services.ServicesRegistry;

/**
 * Protocol for a service that can provide the {@link ServicesRegistry}
 * that is associated with the user's current editing context, if any.
 * When the user is not editing any Papyrus model, then presumably there
 * is no need for any service registry.
 */
@FunctionalInterface
public interface IContextualServiceRegistryTracker {
	/**
	 * Obtains the contextual service registry, if any.
	 * 
	 * @return the contextual service registry, or {@code null} if none
	 */
	ServicesRegistry getServiceRegistry();
}

Back to the top