| /** |
| * |
| * Copyright (c) 2011, 2018 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * 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: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| * generated by Xtext 2.11.0 |
| * |
| */ |
| |
| package org.eclipse.osbp.xtext.signal.ui.labeling |
| |
| import com.google.inject.Inject |
| import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider |
| import org.eclipse.xtext.xbase.ui.labeling.XbaseLabelProvider |
| |
| /** |
| * Provides labels for EObjects. |
| * |
| * See https://www.eclipse.org/Xtext/documentation/304_ide_concepts.html#label-provider |
| */ |
| class SignalDSLLabelProvider extends XbaseLabelProvider { |
| |
| @Inject |
| new(AdapterFactoryLabelProvider delegate) { |
| super(delegate); |
| } |
| |
| // Labels and icons can be computed like this: |
| |
| // def text(Greeting ele) { |
| // 'A greeting to ' + ele.name |
| // } |
| // |
| // def image(Greeting ele) { |
| // 'Greeting.gif' |
| // } |
| } |