blob: 272b5336d267cf8ffcc65b8b85709269c38c6bb4 [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.lander.provider;
import org.eclipse.apogy.examples.lander.LanderSimulated;
import org.eclipse.emf.common.notify.AdapterFactory;
public class LanderSimulatedCustomItemProvider extends LanderSimulatedItemProvider {
public LanderSimulatedCustomItemProvider(AdapterFactory adapterFactory) {
super(adapterFactory);
}
@Override
public String getText(Object object) {
// Cast the object to a simulated lander
LanderSimulated simulatedLander = (LanderSimulated) object;
// The label to be displayed for the lander
String label = getString("_UI_LanderSimulated_type");
label += getLanderSuffixText(simulatedLander);
// Return the generated label
return label;
}
}