blob: 7c5580231d579732b3f0e6f168f2693057e407cb [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2018 Agence spatiale canadienne / Canadian Space Agency
* 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:
* Pierre Allard,
* Regent L'Archeveque - initial API and implementation
*
* SPDX-License-Identifier: EPL-1.0
*******************************************************************************/
package org.eclipse.apogy.examples.mobile_platform.provider;
import org.eclipse.apogy.examples.mobile_platform.MobilePlatform;
import org.eclipse.emf.common.notify.AdapterFactory;
public class MobilePlatformSimulatedCustomItemProvider extends MobilePlatformSimulatedItemProvider {
public MobilePlatformSimulatedCustomItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
@Override
public String getText(Object object) {
MobilePlatform mobilePlatformSimulated = (MobilePlatform) object;
// Get the basic label
String label = getString("_UI_MobilePlatformSimulated_type");
// Adds additional infor as part of the text.
label += getMobilePlatformSuffixText(mobilePlatformSimulated);
return label;
}
}