blob: 89a3e58cbf9e5a16f6f8a395adb1910ed12996ca [file] [log] [blame]
/*****************************************************************************
* 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 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* 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$
}
}