blob: 883f19ef9f78bdb1510a8c9e543896bf6a0e1d84 (
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
33
|
/*****************************************************************************
* Copyright (c) 2013, 2017 CEA LIST.
*
* 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:
* CEA LIST - Initial API and implementation
*****************************************************************************/
package org.eclipse.papyrus.cdo.validation.problems.edit;
import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
/**
* Convenient base class for generated item provider adapters to implement the {@link IProblemTypeProvider} protocol.
*/
public class ProblemTypeItemProviderAdapter
extends ItemProviderAdapter
implements IProblemTypeProvider {
public ProblemTypeItemProviderAdapter(AdapterFactory adapterFactory) {
super(adapterFactory);
}
@Override
public String getProblemType(Object object) {
return getString("_UI_problem_type", true); //$NON-NLS-1$
}
}
|