Skip to content

Package: EMFFormsLocaleProvider

EMFFormsLocaleProvider

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2011-2015 EclipseSource Muenchen GmbH and others.
3: *
4: * All rights reserved. This program and the accompanying materials
5: * are made available under the terms of the Eclipse Public License 2.0
6: * which accompanies this distribution, and is available at
7: * https://www.eclipse.org/legal/epl-2.0/
8: *
9: * SPDX-License-Identifier: EPL-2.0
10: *
11: * Contributors:
12: * Eugen Neufeld - initial API and implementation
13: ******************************************************************************/
14: package org.eclipse.emfforms.spi.common.locale;
15:
16: import java.util.Locale;
17:
18: /**
19: * EMF Forms provider for {@link Locale Locales}.
20: *
21: * @author Eugen Neufeld
22: *
23: */
24: public interface EMFFormsLocaleProvider {
25:
26:         /**
27:          * Returns the current locale service.
28:          *
29:          * @return the current {@link Locale}
30:          */
31:         Locale getLocale();
32:
33:         /**
34:          * Add an EMFFormsLocaleChangeListener that gets notified about locale changes.
35:          *
36:          * @param listener The EMFFormsLocaleChangeListener to add
37:          */
38:         void addEMFFormsLocaleChangeListener(EMFFormsLocaleChangeListener listener);
39:
40:         /**
41:          * Remove an EMFFormsLocaleChangeListener.
42:          *
43:          * @param listener The EMFFormsLocaleChangeListener to remove
44:          */
45:         void removeEMFFormsLocaleChangeListener(EMFFormsLocaleChangeListener listener);
46: }