Skip to content

Package: LocalizationAdapter

LocalizationAdapter

nameinstructionbranchcomplexitylinemethod
LocalizationAdapter()
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

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.emf.ecp.view.spi.model;
15:
16: import org.eclipse.emf.common.notify.impl.AdapterImpl;
17:
18: /**
19: * Abstract definition of a LocalizationAdapter.
20: *
21: * @author Eugen Neufeld
22: * @since 1.6
23: *
24: */
25: public abstract class LocalizationAdapter extends AdapterImpl {
26:
27:         /**
28:          * Implement in order to localize a key.
29:          *
30:          * @param key The key to localize
31:          * @return The localized String
32:          */
33:         public abstract String localize(String key);
34:
35: }